Method: Bundler::Thor.check_unknown_options!
- Defined in:
- lib/bundler/vendor/thor/lib/thor.rb
.check_unknown_options!(options = {}) ⇒ Object
Extend check unknown options to accept a hash of conditions.
Parameters
options<Hash>: A hash containing :only and/or :except keys
350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/bundler/vendor/thor/lib/thor.rb', line 350 def ( = {}) @check_unknown_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 |