Class: AbstractSyntaxTreeKit::Node::MASGN

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/masgn.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractSyntaxTreeKit::Node

#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type

Instance Method Summary collapse

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

#lhsObject (readonly)

Returns the value of attribute lhs.



4
5
6
# File 'lib/astkit/node/masgn.rb', line 4

def lhs
  @lhs
end

#rhsObject (readonly)

Returns the value of attribute rhs.



4
5
6
# File 'lib/astkit/node/masgn.rb', line 4

def rhs
  @rhs
end

#splatObject (readonly)

Returns the value of attribute splat.



4
5
6
# File 'lib/astkit/node/masgn.rb', line 4

def splat
  @splat
end