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.
870 871 872 873 874 |
# File 'lib/rubinius/code/ast/definitions.rb', line 870 def initialize(line, name, body) @line = line @name = name.name @body = body end |
Instance Method Details
#bytecode(g) ⇒ Object
880 881 882 883 884 |
# File 'lib/rubinius/code/ast/definitions.rb', line 880 def bytecode(g) pos(g) attach_and_call g, :__class_init__, true end |
#module? ⇒ Boolean
876 877 878 |
# File 'lib/rubinius/code/ast/definitions.rb', line 876 def module? true end |