Class: WatCatcher::Configuration

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/wat_catcher.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/wat_catcher.rb', line 16

def method_missing(method, *args)
  if method[-1] != "="
    ENV["wattle_#{method}".upcase] || super
  else
    super
  end
end