Class: Rubinius::ToolSet.current::TS::AST::Snippet
- Inherits:
-
Container
- Object
- Node
- ClosedScope
- Container
- Rubinius::ToolSet.current::TS::AST::Snippet
- Defined in:
- lib/rubinius/ast/definitions.rb
Instance Attribute Summary
Attributes inherited from Container
#file, #name, #pre_exe, #variable_scope
Attributes inherited from ClosedScope
Attributes inherited from Node
Instance Method Summary collapse
- #bytecode(g) ⇒ Object
-
#initialize(body) ⇒ Snippet
constructor
A new instance of Snippet.
- #sexp_name ⇒ Object
Methods inherited from Container
#container_bytecode, #pop_state, #push_state, #to_sexp
Methods inherited from ClosedScope
#assign_local_reference, #attach_and_call, #module?, #nest_scope, #new_local, #new_nested_local, #search_local, #to_sexp
Methods inherited from Node
#ascii_graph, #attributes, #children, #defined, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk
Constructor Details
#initialize(body) ⇒ Snippet
Returns a new instance of Snippet.
1098 1099 1100 1101 |
# File 'lib/rubinius/ast/definitions.rb', line 1098 def initialize(body) super body @name = :__snippet__ end |
Instance Method Details
#bytecode(g) ⇒ Object
1103 1104 1105 1106 1107 1108 1109 |
# File 'lib/rubinius/ast/definitions.rb', line 1103 def bytecode(g) super(g) container_bytecode(g) do @body.bytecode(g) end end |
#sexp_name ⇒ Object
1111 1112 1113 |
# File 'lib/rubinius/ast/definitions.rb', line 1111 def sexp_name :snippet end |