Sha256: c56711c4b27b53debabd84ad83e73c466fee87b0fa3cd4b4bc2ac99b8d6f5668

Contents?: true

Size: 465 Bytes

Versions: 37

Compression:

Stored size: 465 Bytes

Contents

module Onoma
  class Reference
    attr_reader :set, :property, :foreign_nomenclature

    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

    def nomenclature
      @property.nomenclature
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
onoma-0.9.3 lib/onoma/reference.rb
onoma-0.9.2 lib/onoma/reference.rb
onoma-0.9.1 lib/onoma/reference.rb
onoma-0.9.0 lib/onoma/reference.rb
onoma-0.8.9 lib/onoma/reference.rb
onoma-0.8.8 lib/onoma/reference.rb
onoma-0.8.7 lib/onoma/reference.rb
onoma-0.8.6 lib/onoma/reference.rb
onoma-0.8.5 lib/onoma/reference.rb
onoma-0.8.4 lib/onoma/reference.rb
onoma-0.8.3 lib/onoma/reference.rb
onoma-0.8.2 lib/onoma/reference.rb
onoma-0.8.1 lib/onoma/reference.rb
onoma-0.8.0 lib/onoma/reference.rb
onoma-0.7.0 lib/onoma/reference.rb
onoma-0.6.4 lib/onoma/reference.rb
onoma-0.6.3 lib/onoma/reference.rb
onoma-0.6.2 lib/onoma/reference.rb
onoma-0.6.0 lib/onoma/reference.rb
onoma-0.5.6 lib/onoma/reference.rb