Class: Slop::NullOption
- Inherits:
-
BoolOption
- Object
- Option
- BoolOption
- Slop::NullOption
- Defined in:
- lib/slop/types.rb
Overview
An option that discards the return value, inherits from Bool since it does not expect an argument.
Constant Summary
Constants inherited from BoolOption
BoolOption::FALSE_VALUES, BoolOption::TRUE_VALUES, BoolOption::VALID_VALUES
Constants inherited from Option
Instance Attribute Summary
Attributes inherited from BoolOption
Attributes inherited from Option
#block, #config, #count, #desc, #flags, #value
Instance Method Summary collapse
Methods inherited from BoolOption
#call, #default_value, #expects_argument?, #force_false?, #valid?, #value
Methods inherited from Option
#call, #default_value, #ensure_call, #expects_argument?, #finish, #flag, #help?, #initialize, #key, #required?, #reset, #suppress_errors?, #tail, #tail?, #to_s, #underscore_flags?, #valid?, #validate_type?
Constructor Details
This class inherits a constructor from Slop::Option
Instance Method Details
#null? ⇒ Boolean
127 128 129 |
# File 'lib/slop/types.rb', line 127 def null? true end |