module Finder

TODO: Import is optional for the time bing.

require ‘finder/import’

Public Instance Methods

const_missing(name) click to toggle source

Access to project metadata via constants.

@example

Finder::VERSION  #=> '0.2.0'
Calls superclass method
# File lib/finder/index.rb, line 20
def const_missing(name)
  index[name.to_s.downcase] || super(name)
end
index() click to toggle source

Cached access to project metadata.

# File lib/finder/index.rb, line 6
def index
  @index ||=(
    require 'yaml'
    file = File.expand_path('../finder.yml', File.dirname(__FILE__))
    YAML.load_file(file)
  )
end