module Bang

Public Class Methods

const_missing(const_name) click to toggle source

If constant is missing check for value in project metadata. e.g. ‘Bang::VERSION`.

Calls superclass method
# File lib/bang.rb, line 10
def self.const_missing(const_name)
  index[const_name.to_s.downcase] || super(const_name)
end
index() click to toggle source

Access project metadata.

# File lib/bang.rb, line 17
def self.index
  @index ||= (
    require 'yaml'
    YAML.load_file(File.dirname(__FILE__) + '/bang.yml')
  )
end