module Mida::DataVocabulary

Public Class Methods

const_missing(name) click to toggle source
# File lib/mida_vocabulary/vocabularies/data_vocabulary.rb, line 3
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
forget_all!() click to toggle source
# File lib/mida_vocabulary/vocabularies/data_vocabulary.rb, line 12
def self.forget_all!
  constants.each do |name|
    remove_const(name)
  end
end