Sha256: 5598673c41ffd0c41b5737f65ad742d5b2c083262fcd1abd05c2cfc22dd8fd14

Contents?: true

Size: 401 Bytes

Versions: 4

Compression:

Stored size: 401 Bytes

Contents

# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig.
# License:   Apache License, Version 2.0

module RTM::AR::Sugar
  module Topic
    module Characteristics
      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-activerecord-0.3.1 lib/rtm/activerecord/sugar/topic/characteristics.rb
rtm-activerecord-0.3.0 lib/rtm/activerecord/sugar/topic/characteristics.rb
rtm-activerecord-0.2.1 lib/rtm/activerecord/sugar/topic/characteristics.rb
rtm-activerecord-0.2.0 lib/rtm/activerecord/sugar/topic/characteristics.rb