class Guard::Options


A class that holds options. Can be instantiated with default options.

def fetch(name)

workaround for: https://github.com/erikhuda/thor/issues/504
def fetch(name)
  super(name.to_s)
end

def initialize(opts = {}, default_opts = {})

Parameters:
  • default_opts (Hash) -- the default options
  • opts (Hash) -- the options
def initialize(opts = {}, default_opts = {})
  super(default_opts.merge(opts || {}))
end