Class: Opencdd::Cddal::AST::IdentifierRef

Inherits:
Struct
  • Object
show all
Defined in:
lib/opencdd/cddal/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



110
111
112
# File 'lib/opencdd/cddal/ast.rb', line 110

def name
  @name
end

#ownerObject

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



110
111
112
# File 'lib/opencdd/cddal/ast.rb', line 110

def owner
  @owner
end

Instance Method Details

#qualified?Boolean

Returns:

  • (Boolean)


111
112
113
# File 'lib/opencdd/cddal/ast.rb', line 111

def qualified?
  !owner.nil?
end

#to_sObject Also known as: to_cddal



115
116
117
# File 'lib/opencdd/cddal/ast.rb', line 115

def to_s
  qualified? ? "#{owner}.#{name}" : name
end