Class: Seaquel::AST::Assign
- Inherits:
-
Object
- Object
- Seaquel::AST::Assign
- Defined in:
- lib/seaquel/ast/assign.rb
Overview
Assignment of right to left. This class can be visited.
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left, right) ⇒ Assign
constructor
A new instance of Assign.
- #visit(visitor) ⇒ Object
Constructor Details
#initialize(left, right) ⇒ Assign
Returns a new instance of Assign.
8 9 10 |
# File 'lib/seaquel/ast/assign.rb', line 8 def initialize left, right @left, @right = left, right end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
6 7 8 |
# File 'lib/seaquel/ast/assign.rb', line 6 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
6 7 8 |
# File 'lib/seaquel/ast/assign.rb', line 6 def right @right end |
Instance Method Details
#visit(visitor) ⇒ Object
12 13 14 |
# File 'lib/seaquel/ast/assign.rb', line 12 def visit visitor visitor.visit_assign(left, right) end |