Class: Melbourne::AST::Alias
- Defined in:
- lib/melbourne/ast/definitions.rb
Overview
An alias statement as in:
alias x y
Direct Known Subclasses
Instance Attribute Summary collapse
-
#from ⇒ Object
The alias that is defined for the element.
-
#to ⇒ Object
The element that is aliased.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, to, from) ⇒ Alias
constructor
A new instance of Alias.
Methods inherited from Node
Constructor Details
#initialize(line, to, from) ⇒ Alias
Returns a new instance of Alias.
19 20 21 22 23 |
# File 'lib/melbourne/ast/definitions.rb', line 19 def initialize(line, to, from) @line = line @to = to @from = from end |
Instance Attribute Details
#from ⇒ Object
The alias that is defined for the element
17 18 19 |
# File 'lib/melbourne/ast/definitions.rb', line 17 def from @from end |
#to ⇒ Object
The element that is aliased
13 14 15 |
# File 'lib/melbourne/ast/definitions.rb', line 13 def to @to end |