Sha256: 55ade9dbbb8bd92587cf2e576cb51354bf82695aaaffb571c2fd1aa88e0008e3

Contents?: true

Size: 505 Bytes

Versions: 37

Compression:

Stored size: 505 Bytes

Contents

require "thor/core_ext/hash_with_indifferent_access"

module Guard
  # A class that holds options. Can be instantiated with default options.
  #
  class Options < Thor::CoreExt::HashWithIndifferentAccess
    # Initializes an Guard::Options object. `default_opts` is merged into
    # `opts`.
    #
    # @param [Hash] opts the options
    # @param [Hash] default_opts the default options
    #
    def initialize(opts = {}, default_opts = {})
      super(default_opts.merge(opts || {}))
    end
  end
end

Version data entries

37 entries across 37 versions & 4 rubygems

Version Path
gameboard-3.1.0 vendor/bundle/ruby/2.3.0/gems/guard-2.14.0/lib/guard/options.rb
gameboard-3.0.0 vendor/bundle/ruby/2.3.0/gems/guard-2.14.0/lib/guard/options.rb
guard-2.14.0 lib/guard/options.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/guard-2.13.0/lib/guard/options.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/guard-2.13.0/lib/guard/options.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/guard-2.13.0/lib/guard/options.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/guard-2.13.0/lib/guard/options.rb
geminfo-0.1.0 path/gems/guard-2.13.0/lib/guard/options.rb
guard-2.13.0 lib/guard/options.rb
guard-2.12.9 lib/guard/options.rb
guard-2.12.8 lib/guard/options.rb
guard-2.12.7 lib/guard/options.rb
guard-2.12.6 lib/guard/options.rb
guard-2.12.5 lib/guard/options.rb
guard-2.12.4 lib/guard/options.rb
guard-2.12.3 lib/guard/options.rb
guard-2.12.2 lib/guard/options.rb
guard-2.12.1 lib/guard/options.rb
guard-2.12.0 lib/guard/options.rb
guard-2.11.1 lib/guard/options.rb