Class: AbstractSyntaxTreeKit::Node::SCOPE

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

Instance Attribute Summary collapse

Attributes inherited from AbstractSyntaxTreeKit::Node

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

Instance Method Summary collapse

Constructor Details

#initialize(node:, local_table:, arguments:, body:) ⇒ SCOPE

Returns a new instance of SCOPE.



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

def initialize(node:, local_table:, arguments:, body:)
  super(node)
  @local_table = local_table
  @arguments = arguments
  @body = body
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



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

def arguments
  @arguments
end

#bodyObject (readonly)

Returns the value of attribute body.



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

def body
  @body
end

#local_tableObject (readonly)

Returns the value of attribute local_table.



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

def local_table
  @local_table
end