Sha256: a34d07e380112428904a6f3563210cd3647d416d69cfd582c97e3f07cf00af00

Contents?: true

Size: 368 Bytes

Versions: 4

Compression:

Stored size: 368 Bytes

Contents

module RTM::Sugar
  module Topic
    module Characteristics
      def characteristics
        topic_names.to_a + occurrences.to_a
      end
      def internal_occurrences
        occurrences.select{|o| o.datatype != RTM::PSI[:IRI]}
      end
      def external_occurrences
        occurrences.select{|o| o.datatype == RTM::PSI[:IRI]}
      end      
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rtm-0.1.4 lib/rtm/sugar/topic/characteristics.rb
rtm-0.1.5 lib/rtm/sugar/topic/characteristics.rb
rtm-0.1.3 lib/rtm/sugar/topic/characteristics.rb
rtm-0.1.6 lib/rtm/sugar/topic/characteristics.rb