Sha256: 3b26e70043102ad561ddd3f673457557262100fcd40f89dc13b712ee1c464a18
Contents?: true
Size: 545 Bytes
Versions: 4
Compression:
Stored size: 545 Bytes
Contents
Object.__send__(:remove_const, :VERSION) if Object.const_defined?(:VERSION) # becuase Ruby 1.8~ gets in the way module Radix def self.__DIR__ File.dirname(__FILE__) end def self.package @package ||= ( require 'yaml' YAML.load(File.new(__DIR__ + '/package')) ) end def self.profile @profile ||= ( require 'yaml' YAML.load(File.new(__DIR__ + '/profile')) ) end def self.const_missing(name) key = name.to_s.downcase package[key] || profile[key] || super(name) end end
Version data entries
4 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radix-2.0.0 | lib/radix/meta/data.rb |
radix-2.0.0 | meta/data.rb |
radix-1.1.0 | lib/radix/meta/data.rb |
radix-1.1.0 | meta/data.rb |