class HammerCLI::Output::Formatters::BooleanFormatter

Public Instance Methods

format(value, field_params={}) click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 159
def format(value, field_params={})
  (value == 0 || !value || value == "") ? _("no") : _("yes")
end
tags() click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 155
def tags
  [:flat, :screen]
end