Class: ElseifNode
Instance Attribute Summary collapse
-
#argument ⇒ Object
Returns the value of attribute argument.
Attributes inherited from Node
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(argument, node) ⇒ ElseifNode
constructor
A new instance of ElseifNode.
Methods inherited from Node
Constructor Details
#initialize(argument, node) ⇒ ElseifNode
Returns a new instance of ElseifNode.
119 120 121 |
# File 'lib/nodes/stmtnodes.rb', line 119 def initialize(argument, node) @argument, @node = argument, node end |
Instance Attribute Details
#argument ⇒ Object
Returns the value of attribute argument.
117 118 119 |
# File 'lib/nodes/stmtnodes.rb', line 117 def argument @argument end |
Instance Method Details
#evaluate ⇒ Object
123 124 125 |
# File 'lib/nodes/stmtnodes.rb', line 123 def evaluate @value = @node.evaluate end |