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.
126 127 128 |
# File 'lib/fasterer/method_call.rb', line 126 def initialize(element) @element = element end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
124 125 126 |
# File 'lib/fasterer/method_call.rb', line 124 def element @element end |
Instance Method Details
#type ⇒ Object
130 131 132 |
# File 'lib/fasterer/method_call.rb', line 130 def type @type ||= @element[0] end |
#value ⇒ Object
134 135 136 |
# File 'lib/fasterer/method_call.rb', line 134 def value @value ||= @element[1] end |