Class: Rubinius::AST::ScopedModuleName
- Inherits:
-
ModuleName
- Object
- Node
- ModuleName
- Rubinius::AST::ScopedModuleName
- Defined in:
- lib/compiler/ast/definitions.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Attributes inherited from ModuleName
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, node) ⇒ ScopedModuleName
constructor
A new instance of ScopedModuleName.
- #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) ⇒ ScopedModuleName
Returns a new instance of ScopedModuleName.
581 582 583 584 585 |
# File 'lib/compiler/ast/definitions.rb', line 581 def initialize(line, node) @line = line @name = node.name @parent = node.parent end |
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
579 580 581 |
# File 'lib/compiler/ast/definitions.rb', line 579 def parent @parent end |
Instance Method Details
#to_sexp ⇒ Object
587 588 589 |
# File 'lib/compiler/ast/definitions.rb', line 587 def to_sexp [:colon2, @parent.to_sexp, @name] end |