Class: Rubinius::AST::For19Arguments
- Inherits:
-
Node
- Object
- Node
- Rubinius::AST::For19Arguments
show all
- Defined in:
- lib/compiler/ast/sends.rb
Instance Attribute Summary
Attributes inherited from Node
#line
Instance Method Summary
collapse
Methods inherited from Node
#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk
Constructor Details
#initialize(line, arguments) ⇒ For19Arguments
Returns a new instance of For19Arguments.
507
508
509
510
511
512
513
514
515
516
517
518
|
# File 'lib/compiler/ast/sends.rb', line 507
def initialize(line, arguments)
@line = line
@arguments = arguments
if @arguments.kind_of? MultipleAssignment
@args = 0
@splat = 0
else
@args = 1
@splat = nil
end
end
|
Instance Method Details
#post_args ⇒ Object
528
529
530
|
# File 'lib/compiler/ast/sends.rb', line 528
def post_args
0
end
|
#required_args ⇒ Object
520
521
522
|
# File 'lib/compiler/ast/sends.rb', line 520
def required_args
@args
end
|
#splat_index ⇒ Object
532
533
534
|
# File 'lib/compiler/ast/sends.rb', line 532
def splat_index
@splat
end
|
#total_args ⇒ Object
524
525
526
|
# File 'lib/compiler/ast/sends.rb', line 524
def total_args
@args
end
|