Class: Rubinius::AST::PreExe
Direct Known Subclasses
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line) ⇒ PreExe
constructor
A new instance of PreExe.
- #pre_sexp ⇒ Object
- #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) ⇒ 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
#block ⇒ Object
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_sexp ⇒ Object
119 120 121 |
# File 'lib/compiler/ast/sends.rb', line 119 def pre_sexp @block.to_sexp.insert 1, :pre_exe end |
#to_sexp ⇒ Object
116 117 |
# File 'lib/compiler/ast/sends.rb', line 116 def to_sexp end |