Class: AbstractSyntaxTreeKit::Node::ATTRASGN

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/attrasgn.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:, receiver:, method_id:, arguments:) ⇒ ATTRASGN

Returns a new instance of ATTRASGN.



6
7
8
9
10
11
# File 'lib/astkit/node/attrasgn.rb', line 6

def initialize(node:, receiver:, method_id:, arguments:)
  super(node)
  @receiver = receiver
  @method_id = method_id
  @arguments = arguments
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



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

def arguments
  @arguments
end

#method_idObject (readonly)

Returns the value of attribute method_id.



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

def method_id
  @method_id
end

#receiverObject (readonly)

Returns the value of attribute receiver.



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

def receiver
  @receiver
end