Class: Opencdd::Cddal::AST::IdentifierRef
- Inherits:
-
Struct
- Object
- Struct
- Opencdd::Cddal::AST::IdentifierRef
- Defined in:
- lib/opencdd/cddal/ast.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
- #qualified? ⇒ Boolean
- #to_s ⇒ Object (also: #to_cddal)
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
110 111 112 |
# File 'lib/opencdd/cddal/ast.rb', line 110 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner
110 111 112 |
# File 'lib/opencdd/cddal/ast.rb', line 110 def owner @owner end |
Instance Method Details
#qualified? ⇒ Boolean
111 112 113 |
# File 'lib/opencdd/cddal/ast.rb', line 111 def qualified? !owner.nil? end |
#to_s ⇒ Object Also known as: to_cddal
115 116 117 |
# File 'lib/opencdd/cddal/ast.rb', line 115 def to_s qualified? ? "#{owner}.#{name}" : name end |