Class: Rubinius::AST::ScopedClassName
- Defined in:
- lib/compiler/ast/definitions.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Attributes inherited from ClassName
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, node, superclass) ⇒ ScopedClassName
constructor
A new instance of ScopedClassName.
- #to_sexp ⇒ Object
Methods inherited from Node
#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk
Constructor Details
#initialize(line, node, superclass) ⇒ ScopedClassName
Returns a new instance of ScopedClassName.
509 510 511 512 513 514 |
# File 'lib/compiler/ast/definitions.rb', line 509 def initialize(line, node, superclass) @line = line @name = node.name @parent = node.parent @superclass = superclass end |
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
507 508 509 |
# File 'lib/compiler/ast/definitions.rb', line 507 def parent @parent end |
Instance Method Details
#to_sexp ⇒ Object
516 517 518 |
# File 'lib/compiler/ast/definitions.rb', line 516 def to_sexp [:colon2, @parent.to_sexp, @name] end |