Class: PVN::Diff::WhitespaceOption
- Inherits:
-
BooleanOption
- Object
- BaseOption
- Option
- BooleanOption
- PVN::Diff::WhitespaceOption
- Defined in:
- lib/pvn/diff/options.rb
Constant Summary
Constants inherited from BaseOption
Instance Attribute Summary
Attributes inherited from BaseOption
#default, #description, #name, #negate, #regexp, #tag
Instance Method Summary collapse
-
#initialize(optargs = Hash.new) ⇒ WhitespaceOption
constructor
A new instance of WhitespaceOption.
Methods inherited from BooleanOption
#takes_value?, #to_command_line
Methods inherited from BaseOption
#exact_match?, #negative_match?, #next_argument, #post_process, #process, #regexp_match?, #resolve_value, #set_value, #takes_value?, #to_command_line, #to_doc, #to_s, #unset, #value
Constructor Details
#initialize(optargs = Hash.new) ⇒ WhitespaceOption
Returns a new instance of WhitespaceOption.
11 12 13 |
# File 'lib/pvn/diff/options.rb', line 11 def initialize optargs = Hash.new super :whitespace, '-w', 'ignore all whitespace', false end |