class Onoma::Reference

Attributes

foreign_nomenclature[R]
property[R]
set[R]

Public Class Methods

new(set, property, foreign_nomenclature, type = :key) click to toggle source
# File lib/onoma/reference.rb, line 5
def initialize(set, property, foreign_nomenclature, type = :key)
  @set = set
  @type = type
  @property = property
  @foreign_nomenclature = foreign_nomenclature
  raise "Invalid nomenclature: #{@foreign_nomenclature.inspect}" unless @foreign_nomenclature.is_a?(Nomenclature)
end

Public Instance Methods

nomenclature() click to toggle source
# File lib/onoma/reference.rb, line 13
def nomenclature
  @property.nomenclature
end