Class: Rubinius::AST::PreExe

Inherits:
Node
  • Object
show all
Defined in:
lib/compiler/ast/sends.rb

Direct Known Subclasses

PreExe19

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

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) ⇒ PreExe

Returns a new instance of PreExe.



112
113
114
# File 'lib/compiler/ast/sends.rb', line 112

def initialize(line)
  @line = line
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



110
111
112
# File 'lib/compiler/ast/sends.rb', line 110

def block
  @block
end

Instance Method Details

#pre_sexpObject



119
120
121
# File 'lib/compiler/ast/sends.rb', line 119

def pre_sexp
  @block.to_sexp.insert 1, :pre_exe
end

#to_sexpObject



116
117
# File 'lib/compiler/ast/sends.rb', line 116

def to_sexp
end