Method: Filigree::Configuration::ClassMethods#bool_option
- Defined in:
- lib/filigree/configuration.rb
#bool_option(long, short = nil) ⇒ void
This method returns an undefined value.
Define a boolean option. The variable will be set to true if the flag is seen and be false otherwise.
239 240 241 242 |
# File 'lib/filigree/configuration.rb', line 239 def bool_option(long, short = nil) @next_default = false option(long, short) { true } end |