class Manioc::Env
Constants
- Unset
Public Instance Methods
[](key)
click to toggle source
# File lib/manioc/env.rb, line 9 def [] key ENV[key] end
fetch(key)
click to toggle source
# File lib/manioc/env.rb, line 5 def fetch key ENV[key] || raise(Unest, key) end
method_missing(name, *args)
click to toggle source
Calls superclass method
# File lib/manioc/env.rb, line 13 def method_missing name, *args super if args.count > 1 if name =~ /\A(.*)!\Z/ fetch $1 else self[name.to_s] end end