Method: Figaro::ENV#method_missing
- Defined in:
- lib/figaro/env.rb
#method_missing(method) ⇒ Object (private)
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/figaro/env.rb', line 17 def method_missing(method, *) key, punctuation = extract_key_from_method(method) case punctuation when "!" then send(key) || missing_key!(key) when "?" then !!send(key) when nil then get_value(key) else super end end |