Class: Guard::Options

Inherits:
Thor::CoreExt::HashWithIndifferentAccess
  • Object
show all
Defined in:
lib/guard/options.rb

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}, default_opts = {}) ⇒ Options

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



15
16
17
# File 'lib/guard/options.rb', line 15

def initialize(opts = {}, default_opts = {})
  super(default_opts.merge(opts || {}))
end