Class: Rubinius::AST::ToArray
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, value) ⇒ ToArray
constructor
A new instance of ToArray.
- #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, value) ⇒ ToArray
Returns a new instance of ToArray.
63 64 65 66 |
# File 'lib/compiler/ast/values.rb', line 63 def initialize(line, value) @line = line @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
61 62 63 |
# File 'lib/compiler/ast/values.rb', line 61 def value @value end |
Instance Method Details
#to_sexp ⇒ Object
68 69 70 |
# File 'lib/compiler/ast/values.rb', line 68 def to_sexp [:to_ary, @value.to_sexp] end |