Class: Rubinius::AST::EndData
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(offset, body) ⇒ EndData
constructor
A new instance of EndData.
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(offset, body) ⇒ EndData
Returns a new instance of EndData.
8 9 10 11 |
# File 'lib/compiler/ast/data.rb', line 8 def initialize(offset, body) @offset = offset @body = body || NilLiteral.new(1) end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
6 7 8 |
# File 'lib/compiler/ast/data.rb', line 6 def data @data end |