Class: Rubinius::AST::NthRef
Constant Summary collapse
- Mode =
5
Instance Attribute Summary collapse
-
#which ⇒ Object
Returns the value of attribute which.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, ref) ⇒ NthRef
constructor
A new instance of NthRef.
- #to_sexp ⇒ Object
Methods inherited from Node
#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk
Constructor Details
#initialize(line, ref) ⇒ NthRef
Returns a new instance of NthRef.
37 38 39 40 |
# File 'lib/compiler/ast/variables.rb', line 37 def initialize(line, ref) @line = line @which = ref end |
Instance Attribute Details
#which ⇒ Object
Returns the value of attribute which.
35 36 37 |
# File 'lib/compiler/ast/variables.rb', line 35 def which @which end |
Instance Method Details
#to_sexp ⇒ Object
44 45 46 |
# File 'lib/compiler/ast/variables.rb', line 44 def to_sexp [:nth_ref, @which] end |