Module: Facets

Defined in:
lib/core/facets/version.rb

Constant Summary collapse

VERSION =

deprecate

'3.0.0'

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



11
12
13
14
# File 'lib/core/facets/version.rb', line 11

def self.const_missing(name)
  key = name.to_s.downcase
  index[key] || super(name)
end

.indexObject



3
4
5
6
7
8
# File 'lib/core/facets/version.rb', line 3

def self.index
  @index ||= (
    require 'yaml'
    YAML.load(File.new(File.dirname(__FILE__) + '/facets.yml'))
  )
end