Class: Fasterer::Argument
- Inherits:
-
Object
- Object
- Fasterer::Argument
- Defined in:
- lib/fasterer/method_call.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
Instance Method Summary collapse
-
#initialize(element) ⇒ Argument
constructor
A new instance of Argument.
- #type ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(element) ⇒ Argument
Returns a new instance of Argument.
111 112 113 |
# File 'lib/fasterer/method_call.rb', line 111 def initialize(element) @element = element end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
109 110 111 |
# File 'lib/fasterer/method_call.rb', line 109 def element @element end |
Instance Method Details
#type ⇒ Object
115 116 117 |
# File 'lib/fasterer/method_call.rb', line 115 def type @type ||= @element[0] end |
#value ⇒ Object
119 120 121 |
# File 'lib/fasterer/method_call.rb', line 119 def value @value ||= @element[1] end |