Class: Sexpir::Assign
- Defined in:
- lib/sexpir/ast.rb,
lib/sexpir/ast_sexp.rb
Instance Attribute Summary collapse
-
#lhs ⇒ Object
Returns the value of attribute lhs.
-
#rhs ⇒ Object
Returns the value of attribute rhs.
Attributes inherited from Ast
Instance Method Summary collapse
Methods inherited from Ast
Instance Attribute Details
#lhs ⇒ Object
Returns the value of attribute lhs.
62 63 64 |
# File 'lib/sexpir/ast.rb', line 62 def lhs @lhs end |
#rhs ⇒ Object
Returns the value of attribute rhs.
62 63 64 |
# File 'lib/sexpir/ast.rb', line 62 def rhs @rhs end |
Instance Method Details
#sexp ⇒ Object
106 107 108 |
# File 'lib/sexpir/ast_sexp.rb', line 106 def sexp "(assign #{lhs.sexp} #{rhs.sexp})" end |