Class: Rubinius::ToolSet.current::TS::AST::VariableAccess
- Defined in:
- lib/rubinius/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.
- #value_defined(g, f) ⇒ Object
Methods inherited from Node
#ascii_graph, #attributes, #bytecode, #children, #defined, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #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.
109 110 111 112 |
# File 'lib/rubinius/ast/variables.rb', line 109 def initialize(line, name) @line = line @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
107 108 109 |
# File 'lib/rubinius/ast/variables.rb', line 107 def name @name end |
Instance Method Details
#value_defined(g, f) ⇒ Object
114 115 116 117 |
# File 'lib/rubinius/ast/variables.rb', line 114 def value_defined(g, f) variable_defined(g, f) bytecode(g) end |