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.
112 113 114 |
# File 'lib/bolt/bolt_option_parser.rb', line 112 def hide @hide end |
Instance Method Details
#summarize(*args) ⇒ Object
114 115 116 117 |
# File 'lib/bolt/bolt_option_parser.rb', line 114 def summarize(*args) return self if hide super end |