Class: AbstractSyntaxTreeKit::Node::ARGS
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::ARGS
- Defined in:
- lib/astkit/node/args.rb
Instance Attribute Summary collapse
-
#block_argument ⇒ Object
readonly
Returns the value of attribute block_argument.
-
#keyword_arguments ⇒ Object
readonly
Returns the value of attribute keyword_arguments.
-
#parameter_count ⇒ Object
readonly
Returns the value of attribute parameter_count.
-
#rest_argument ⇒ Object
readonly
Returns the value of attribute rest_argument.
Attributes inherited from AbstractSyntaxTreeKit::Node
#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, parameter_count:, rest_argument:, keyword_arguments:, block_argument:) ⇒ ARGS
constructor
A new instance of ARGS.
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_argument ⇒ Object (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_arguments ⇒ Object (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_count ⇒ Object (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_argument ⇒ Object (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 |