Module: Lab42::Options::DefaultHelpers
- Defined in:
- lib/lab42/options/default_helpers.rb
Instance Method Summary collapse
Instance Method Details
#counts ⇒ Object
5 6 7 |
# File 'lib/lab42/options/default_helpers.rb', line 5 def counts { self => 1 } end |
#flag_count ⇒ Object
8 9 10 |
# File 'lib/lab42/options/default_helpers.rb', line 8 def flag_count self == true ? 1 : 0 end |