Sha256: 430ab7e4b1cd77b3f62e49fc94c6b4c7cb475663a11d84d47cfc03f163af8c3c

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

module Mida
  module DataVocabulary
    def self.const_missing(name)
      filename = File.dirname(__FILE__) + "/data_vocabulary/#{name.to_s.downcase}.rb"

      require filename
      load filename unless self.const_defined?(name, false)

      const_get(name, false) if const_defined?(name, false)
    end

    def self.forget_all!
      constants.each do |name|
        remove_const(name)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mida_vocabulary-0.2.2 lib/mida_vocabulary/vocabularies/data_vocabulary.rb