Class: Rubinius::AST::PatternVariable

Inherits:
Node
  • Object
show all
Includes:
LocalVariable
Defined in:
lib/compiler/ast/variables.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) ⇒ PatternVariable

Returns a new instance of PatternVariable.



344
345
346
347
348
# File 'lib/compiler/ast/variables.rb', line 344

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



342
343
344
# File 'lib/compiler/ast/variables.rb', line 342

def name
  @name
end

#valueObject

Returns the value of attribute value.



342
343
344
# File 'lib/compiler/ast/variables.rb', line 342

def value
  @value
end