Module: FigNewton

Extended by:
YmlReader
Defined in:
lib/fig_newton.rb,
lib/fig_newton/version.rb

Constant Summary collapse

VERSION =
"0.1"

Class Method Summary collapse

Class Method Details

.default_directoryObject



7
8
9
# File 'lib/fig_newton.rb', line 7

def self.default_directory
  'config/environments'
end

.method_missing(*args, &block) ⇒ Object



11
12
13
14
15
16
# File 'lib/fig_newton.rb', line 11

def self.method_missing(*args, &block)
  m = args.first
  value = @yml[m.to_s]
  super unless value
  value
end