Sha256: 2759fc1dc09524e3a233c26cf560e2ee8a447a29c35093e1627ae633a43edfbd
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
require 'raingrams/model' require 'raingrams/open_vocabulary/model' module Raingrams def Raingrams.closed_vocabulary_model(options={},&block) Model.new(options,&block) end def Raingrams.open_vocabulary_model(options={},&block) OpenVocabulary::Model.new(options,&block) end def Raingrams.model(options={},&block) case options[:vocabulary] when :open, 'open' return Raingrams.open_vocabulary_model(options,&block) else return Raingrams.closed_vocabulary_model(options,&block) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
raingrams-0.1.0 | lib/raingrams/raingrams.rb |
raingrams-0.1.2 | lib/raingrams/raingrams.rb |
raingrams-0.1.1 | lib/raingrams/raingrams.rb |