Class: Rubinius::AST::ModuleName
- Defined in:
- lib/compiler/ast/definitions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name) ⇒ ModuleName
constructor
A new instance of ModuleName.
- #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, name) ⇒ ModuleName
Returns a new instance of ModuleName.
557 558 559 560 |
# File 'lib/compiler/ast/definitions.rb', line 557 def initialize(line, name) @line = line @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
555 556 557 |
# File 'lib/compiler/ast/definitions.rb', line 555 def name @name end |
Instance Method Details
#to_sexp ⇒ Object
562 563 564 |
# File 'lib/compiler/ast/definitions.rb', line 562 def to_sexp @name end |