Class: RailsAppGenerator::MapOptionBooleanFlag
- Inherits:
-
BaseMapOption
- Object
- BaseMapOption
- RailsAppGenerator::MapOptionBooleanFlag
- Defined in:
- lib/rails_app_generator/options/map_option_boolean_flag.rb
Overview
Map a boolean true to a command line flag in the format “–flag-name” false is ignored
Instance Method Summary collapse
Methods inherited from BaseMapOption
Instance Method Details
#map(name, value) ⇒ Object
7 8 9 |
# File 'lib/rails_app_generator/options/map_option_boolean_flag.rb', line 7 def map(name, value) value == true ? option_name(name) : '' end |