Class: Rubinius::AST::VariableAccess
- Defined in:
- lib/compiler/ast/variables.rb
Direct Known Subclasses
ClassVariableAccess, GlobalVariableAccess, InstanceVariableAccess, LocalVariableAccess
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name) ⇒ VariableAccess
constructor
A new instance of VariableAccess.
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) ⇒ VariableAccess
Returns a new instance of VariableAccess.
52 53 54 55 |
# File 'lib/compiler/ast/variables.rb', line 52 def initialize(line, name) @line = line @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
50 51 52 |
# File 'lib/compiler/ast/variables.rb', line 50 def name @name end |