Class: Rubinius::AST::PatternVariable
- Includes:
- LocalVariable
- Defined in:
- lib/compiler/ast/variables.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes included from LocalVariable
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name) ⇒ PatternVariable
constructor
A new instance of PatternVariable.
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
#name ⇒ Object
Returns the value of attribute name.
342 343 344 |
# File 'lib/compiler/ast/variables.rb', line 342 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
342 343 344 |
# File 'lib/compiler/ast/variables.rb', line 342 def value @value end |