Module: Bolt::BoltOptionParser::SwitchHider
- Defined in:
- lib/bolt/bolt_option_parser.rb
Overview
A helper mixin for OptionParser::Switch instances which will allow us to show/hide particular switch in the help message produced by the OptionParser#help method on demand.
Instance Attribute Summary collapse
-
#hide ⇒ Object
Returns the value of attribute hide.
Instance Method Summary collapse
Instance Attribute Details
#hide ⇒ Object
Returns the value of attribute hide.
124 125 126 |
# File 'lib/bolt/bolt_option_parser.rb', line 124 def hide @hide end |
Instance Method Details
#summarize(*args) ⇒ Object
126 127 128 129 |
# File 'lib/bolt/bolt_option_parser.rb', line 126 def summarize(*args) return self if hide super end |