Class: AbstractSyntaxTreeKit::Node::ARGS

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/args.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:, parameter_count:, rest_argument:, keyword_arguments:, block_argument:) ⇒ ARGS

Returns a new instance of ARGS.



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

def initialize(node:, parameter_count:, rest_argument:, keyword_arguments:, block_argument:)
  super(node)
  @parameter_count = parameter_count
  @rest_argument = rest_argument
  @keyword_arguments = keyword_arguments
  @block_argument = block_argument
end

Instance Attribute Details

#block_argumentObject (readonly)

Returns the value of attribute block_argument.



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

def block_argument
  @block_argument
end

#keyword_argumentsObject (readonly)

Returns the value of attribute keyword_arguments.



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

def keyword_arguments
  @keyword_arguments
end

#parameter_countObject (readonly)

Returns the value of attribute parameter_count.



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

def parameter_count
  @parameter_count
end

#rest_argumentObject (readonly)

Returns the value of attribute rest_argument.



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

def rest_argument
  @rest_argument
end