Class: Copper::ParamRightAssociated
- Inherits:
-
CopperNode
- Object
- Treetop::Runtime::SyntaxNode
- CopperNode
- Copper::ParamRightAssociated
- Defined in:
- lib/copper/param_right_associated.rb
Instance Method Summary collapse
Instance Method Details
#value(vars = {}) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/copper/param_right_associated.rb', line 3 def value(vars = {}) rhs = self.parent.elements[0].value(vars) lhs = self.elements[0].value(vars) return ([rhs] + [lhs]).flatten end |