Class: HammerCLI::Output::Formatters::BooleanFormatter
- Inherits:
-
FieldFormatter
- Object
- FieldFormatter
- HammerCLI::Output::Formatters::BooleanFormatter
- Defined in:
- lib/hammer_cli/output/formatters.rb
Instance Method Summary collapse
Methods inherited from FieldFormatter
Instance Method Details
#format(value, field_params = {}) ⇒ Object
153 154 155 |
# File 'lib/hammer_cli/output/formatters.rb', line 153 def format(value, field_params={}) !value || value == "" ? _("no") : _("yes") end |
#tags ⇒ Object
149 150 151 |
# File 'lib/hammer_cli/output/formatters.rb', line 149 def [:flat, :screen] end |