Class: AbstractSyntaxTreeKit::Node::MASGN
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::MASGN
- Defined in:
- lib/astkit/node/masgn.rb
Instance Attribute Summary collapse
-
#lhs ⇒ Object
readonly
Returns the value of attribute lhs.
-
#rhs ⇒ Object
readonly
Returns the value of attribute rhs.
-
#splat ⇒ Object
readonly
Returns the value of attribute splat.
Attributes inherited from AbstractSyntaxTreeKit::Node
#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, rhs:, lhs:, splat:) ⇒ MASGN
constructor
A new instance of MASGN.
Constructor Details
#initialize(node:, rhs:, lhs:, splat:) ⇒ MASGN
Returns a new instance of MASGN.
6 7 8 9 10 11 |
# File 'lib/astkit/node/masgn.rb', line 6 def initialize(node:, rhs:, lhs:, splat:) super(node) @rhs = rhs @lhs = lhs @splat = splat end |
Instance Attribute Details
#lhs ⇒ Object (readonly)
Returns the value of attribute lhs.
4 5 6 |
# File 'lib/astkit/node/masgn.rb', line 4 def lhs @lhs end |
#rhs ⇒ Object (readonly)
Returns the value of attribute rhs.
4 5 6 |
# File 'lib/astkit/node/masgn.rb', line 4 def rhs @rhs end |
#splat ⇒ Object (readonly)
Returns the value of attribute splat.
4 5 6 |
# File 'lib/astkit/node/masgn.rb', line 4 def splat @splat end |