Sha256: 292964312cbe17b269fb7b27283e8b2c4e7837d84f858a9fdbd0c7fa93fac63e

Contents?: true

Size: 1.24 KB

Versions: 6

Compression:

Stored size: 1.24 KB

Contents

module RTM
  def self.create(base_locator)
    AR::TopicMap.create(base_locator)
  end
  
  def self.topic_maps
    AR::TopicMap.topic_maps
  end
  
  def self.[](*args)
    if args.size == 0
      return AR::TopicMap.topic_maps
    end
    AR::TopicMap.topic_maps[*args]
  end
  module TopicMapConstruct
    def find(*args)
      RTM::AR.const_get(name.split("::").last).find(*args)
    end
  end
  module Reifiable
  end
  
  module TopicMap
    extend TopicMapConstruct
  end
  
  module Topic
    extend TopicMapConstruct

  end

  module Association
    extend TopicMapConstruct

  end

  module AssociationRole
    extend TopicMapConstruct

  end

  module TopicName
    extend TopicMapConstruct

  end

  module Variant
    extend TopicMapConstruct

  end

  module Occurrence
    extend TopicMapConstruct

  end
  
  module Locator
    
  end
  
  module ItemIdentifier
    extend Locator  
  end
  
  module SubjectIdentifier
    extend Locator
  end
  
  module SubjectLocator
    extend Locator
  end
  
#  module Topics  
#  end
#  module Associations
#  end
#  module TopicNames
#  end
#  module Occurrences
#  end
#  module AssociationRoles
#  end
#  module Reifiables
#  end
#  module Variants
#  end
#  module TopicMaps
#  end
#  module Locators
#  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rtm-0.1.0 lib/rtm/base.rb
rtm-0.1.5 lib/rtm/base.rb
rtm-0.1.4 lib/rtm/base.rb
rtm-0.1.3 lib/rtm/base.rb
rtm-0.1.1 lib/rtm/base.rb
rtm-0.1.6 lib/rtm/base.rb