Class: Ragol::BooleanOption
- Defined in:
- lib/ragol/boolean_option.rb
Overview
a boolean option maps to a single tag, not a tag and value. For example, ā-vā (verbose) is a boolean option, but ā-r 3444ā (revision) is a option with a value.
Instance Attribute Summary
Attributes inherited from Option
#default, #description, #matchers, #name, #negates, #regexps, #tags
Instance Method Summary collapse
Methods inherited from Option
#argument_missing, #convert, #do_match, #initialize, #match_next_value, #match_next_value_optional, #match_next_value_required, #match_rc?, #post_process, #resolve_value, #set_option_value, #set_value_for_tag, #set_value_negative, #set_value_regexp, #take_eq_value, #to_doc, #to_matcher, #to_s, #value_regexp
Constructor Details
This class inherits a constructor from Ragol::Option
Instance Method Details
#takes_value? ⇒ Boolean
11 12 13 |
# File 'lib/ragol/boolean_option.rb', line 11 def takes_value? false end |