Class: Guard::Options
- Inherits:
-
Thor::CoreExt::HashWithIndifferentAccess
- Object
- Thor::CoreExt::HashWithIndifferentAccess
- Guard::Options
- Defined in:
- lib/guard/options.rb
Overview
A class that holds options. Can be instantiated with default options.
Instance Method Summary collapse
-
#initialize(opts = {}, default_opts = {}) ⇒ Options
constructor
Initializes an Guard::Options object.
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 |