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.
122 123 124 |
# File 'lib/bolt/bolt_option_parser.rb', line 122 def hide @hide end |
Instance Method Details
#summarize(*args) ⇒ Object
124 125 126 127 |
# File 'lib/bolt/bolt_option_parser.rb', line 124 def summarize(*args) return self if hide super end |