Class: AbstractSyntaxTreeKit::Node::KW_ARG

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/kw_arg.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:, body:, next_keyword_argument:) ⇒ KW_ARG

Returns a new instance of KW_ARG.



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

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



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

def body
  @body
end

#next_keyword_argumentObject (readonly)

Returns the value of attribute next_keyword_argument.



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

def next_keyword_argument
  @next_keyword_argument
end