Class: Rubinius::AST::SValue
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, value) ⇒ SValue
constructor
A new instance of SValue.
- #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) ⇒ SValue
Returns a new instance of SValue.
50 51 52 53 |
# File 'lib/compiler/ast/values.rb', line 50 def initialize(line, value) @line = line @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
48 49 50 |
# File 'lib/compiler/ast/values.rb', line 48 def value @value end |
Instance Method Details
#to_sexp ⇒ Object
55 56 57 |
# File 'lib/compiler/ast/values.rb', line 55 def to_sexp [:svalue, @value.to_sexp] end |