Method: Thor::Base::ClassMethods#check_default_type!
- Defined in:
- lib/thor/base.rb
permalink #check_default_type! ⇒ Object
If you want to raise an error when the default value of an option does not match the type call check_default_type! This will be the default; for compatibility a deprecation warning is issued if necessary.
183 184 185 |
# File 'lib/thor/base.rb', line 183 def check_default_type! @check_default_type = true end |