Method: Atatus::Config::Options::InstanceMethods#set

Defined in:
lib/atatus/config/options.rb

#set(key, value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



150
151
152
153
154
155
# File 'lib/atatus/config/options.rb', line 150

def set(key, value)
  options.fetch(key.to_sym).set(value)
rescue KeyError
  warn format("Unknown option '%s'", key)
  nil
end