class Guard::Options

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

Public Class Methods

new(opts = {}, default_opts = {}) click to toggle source

Initializes an Guard::Options object. `default_opts` is merged into `opts`.

@param [Hash] opts the options @param [Hash] default_opts the default options

Calls superclass method
# File lib/guard/options.rb, line 13
def initialize(opts = {}, default_opts = {})
  super(default_opts.merge(opts || {}))
end

Public Instance Methods

fetch(name) click to toggle source

workaround for: github.com/erikhuda/thor/issues/504

Calls superclass method
# File lib/guard/options.rb, line 18
def fetch(name)
  super(name.to_s)
end