Sha256: 33023e36a246abe4a1181d0da3abed62560e608a18f77422f9d3bd0817741956

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

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

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

  # deprecate
  VERSION = '3.0.0'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-3.1.0 lib/core/facets/version.rb
facets-3.0.0 lib/core/facets/version.rb