Sha256: 34e2f824c60e026a94f5a47e501722fd72b3c141684e871931502190269d970d
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
module Brite # Access to project metadata as given in `brite.yaml` which # is soft linked to the `.ruby` project file. # # @return [Hash] project metadata def self.metadata @metadata ||= ( require 'yaml' YAML.load(File.dirname(__FILE__) + '/../brite.yml') ) end # If constant is missing, check project metadata. # # @raise [NameError] uninitialized constant def self.const_missing(name) metadata[name.to_s.downcase] || super(name) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brite-0.7.0 | lib/brite/version.rb |