Class: Opencdd::Cddal::AST::ImportedName
- Inherits:
-
Struct
- Object
- Struct
- Opencdd::Cddal::AST::ImportedName
- Defined in:
- lib/opencdd/cddal/ast.rb
Overview
One name in a selective import (from "x" import { Foo, Bar as B }).
as is the optional local rename; when nil, the name is bound
under its original form.
Instance Attribute Summary collapse
-
#as ⇒ Object
Returns the value of attribute as.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#as ⇒ Object
Returns the value of attribute as
42 43 44 |
# File 'lib/opencdd/cddal/ast.rb', line 42 def as @as end |
#name ⇒ Object
Returns the value of attribute name
42 43 44 |
# File 'lib/opencdd/cddal/ast.rb', line 42 def name @name end |
Instance Method Details
#local_name ⇒ Object
43 44 45 |
# File 'lib/opencdd/cddal/ast.rb', line 43 def local_name as || name end |