Sha256: 37bb764582436c9bd9a90d8340e980491469714abac0cf04edec1025f2975abb
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
class RagTag DIRECTORY = File.dirname(__FILE__) def self.package @package ||= ( require 'yaml' YAML.load(File.new(DIRECTORY + '/package')) ) end def self.profile @profile ||= ( require 'yaml' YAML.load(File.new(DIRECTORY + '/profile')) ) end def self.const_missing(name) key = name.to_s.downcase package[key] || profile[key] || super(name) end end # becuase Ruby 1.8~ gets in the way Object.__send__(:remove_const, :VERSION) if Object.const_defined?(:VERSION)
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ragtag-0.6.0 | lib/ragtag/meta/data.rb |
ragtag-0.6.0 | meta/data.rb |