Class: Rubinius::AST::Script
- Inherits:
-
Container
- Object
- Node
- ClosedScope
- Container
- Rubinius::AST::Script
- Defined in:
- lib/compiler/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
-
#initialize(body) ⇒ Script
constructor
A new instance of Script.
- #sexp_name ⇒ Object
Methods inherited from Container
#pop_state, #push_state, #to_sexp
Methods inherited from ClosedScope
#assign_local_reference, #module?, #nest_scope, #new_local, #new_nested_local, #search_local, #to_sexp
Methods included from Compiler::LocalVariables
#allocate_slot, #local_count, #local_names, #variables
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(body) ⇒ Script
Returns a new instance of Script.
726 727 728 729 |
# File 'lib/compiler/ast/definitions.rb', line 726 def initialize(body) super body @name = :__script__ end |
Instance Method Details
#sexp_name ⇒ Object
731 732 733 |
# File 'lib/compiler/ast/definitions.rb', line 731 def sexp_name :script end |