Class: Rubinius::AST::ModuleScope
- Inherits:
-
ClosedScope
- Object
- Node
- ClosedScope
- Rubinius::AST::ModuleScope
- Defined in:
- lib/compiler/ast/definitions.rb
Instance Attribute Summary
Attributes inherited from ClosedScope
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name, body) ⇒ ModuleScope
constructor
A new instance of ModuleScope.
- #module? ⇒ Boolean
Methods inherited from ClosedScope
#assign_local_reference, #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(line, name, body) ⇒ ModuleScope
Returns a new instance of ModuleScope.
593 594 595 596 597 |
# File 'lib/compiler/ast/definitions.rb', line 593 def initialize(line, name, body) @line = line @name = name.name @body = body end |
Instance Method Details
#module? ⇒ Boolean
599 600 601 |
# File 'lib/compiler/ast/definitions.rb', line 599 def module? true end |