class Guard::Options
A class that holds options. Can be instantiated with default options.
def fetch(name)
def fetch(name) super(name.to_s) end
def initialize(opts = {}, default_opts = {})
-
default_opts
(Hash
) -- the default options -
opts
(Hash
) -- the options
def initialize(opts = {}, default_opts = {}) super(default_opts.merge(opts || {})) end