Class: CodeTools::AST::ClassScope
- Inherits:
-
ClosedScope
- Object
- Node
- ClosedScope
- CodeTools::AST::ClassScope
- Defined in:
- lib/rubinius/code/ast/definitions.rb
Instance Attribute Summary
Attributes inherited from ClosedScope
Attributes inherited from Node
Instance Method Summary collapse
- #bytecode(g) ⇒ Object
-
#initialize(line, name, body) ⇒ ClassScope
constructor
A new instance of ClassScope.
- #module? ⇒ Boolean
Methods inherited from ClosedScope
#assign_local_reference, #attach_and_call, #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(line, name, body) ⇒ ClassScope
Returns a new instance of ClassScope.
858 859 860 861 862 |
# File 'lib/rubinius/code/ast/definitions.rb', line 858 def initialize(line, name, body) @line = line @name = name.name @body = body end |
Instance Method Details
#bytecode(g) ⇒ Object
868 869 870 871 872 |
# File 'lib/rubinius/code/ast/definitions.rb', line 868 def bytecode(g) pos(g) attach_and_call g, :__class_init__, true end |
#module? ⇒ Boolean
864 865 866 |
# File 'lib/rubinius/code/ast/definitions.rb', line 864 def module? true end |