lib/bundler/vendor/thor.rb
# Extend check unknown options to accept a hash of conditions.
#
# === Parameters
# options<Hash>: A hash containing :only and/or :except keys
Extend check unknown options to accept a hash of conditions.
Parameters
options: A hash containing :only and/or :except keys
Extend check unknown options to accept a hash of conditions . Parameters options : A hash containing : only and / or : except keys
def check_unknown_options!(options={})
      @check_unknown_options ||= Hash.new
      options.each do |key, value|
        if value
          @check_unknown_options[key] = Array(value)
        else
          @check_unknown_options.delete(key)
        end
      end
      @check_unknown_options
    end
def check_unknown_options! ( options = { } ) @check_unknown_options ||= Hash . new options . each do | key , value | if value @check_unknown_options [ key ] = Array ( value ) else @check_unknown_options . delete ( key ) end end @check_unknown_options end
Extend check unknown options to accept a hash of conditions.
Extend check unknown options to accept a hash of conditions .
options
<not_specific>