Class: Opencdd::Cddal::AST::PropertyAssignment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#identifierObject

Returns the value of attribute identifier

Returns:

  • (Object)

    the current value of identifier



79
80
81
# File 'lib/opencdd/cddal/ast.rb', line 79

def identifier
  @identifier
end

#language_tagObject

Returns the value of attribute language_tag

Returns:

  • (Object)

    the current value of language_tag



79
80
81
# File 'lib/opencdd/cddal/ast.rb', line 79

def language_tag
  @language_tag
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



79
80
81
# File 'lib/opencdd/cddal/ast.rb', line 79

def line
  @line
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



79
80
81
# File 'lib/opencdd/cddal/ast.rb', line 79

def value
  @value
end

Instance Method Details

#resolved_keyObject



80
81
82
# File 'lib/opencdd/cddal/ast.rb', line 80

def resolved_key
  language_tag ? "#{identifier}.#{language_tag}" : identifier
end