Class: Rubinius::AST::BlockArgument

Inherits:
Node
  • Object
show all
Includes:
LocalVariable
Defined in:
lib/compiler/ast/definitions.rb

Instance Attribute Summary collapse

Attributes included from LocalVariable

#variable

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, name) ⇒ BlockArgument

Returns a new instance of BlockArgument.



432
433
434
435
# File 'lib/compiler/ast/definitions.rb', line 432

def initialize(line, name)
  @line = line
  @name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



430
431
432
# File 'lib/compiler/ast/definitions.rb', line 430

def name
  @name
end