Method: FalseClass#f

Defined in:
lib/waxx/patch.rb

#f(format = :yn) ⇒ Object

Format to a selected format (see TrueClass also)

Format Options:
  yn: No
  tf: False
  icon: glyphicon (Bootstrap)
  num: 0


31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/waxx/patch.rb', line 31

def f(format=:yn)
  case format.to_sym
    when :yn
      "No"
    when :tf
      "False"
    when :icon
      '<span class="glyphicon glyphicon-minus" aria-hidden="true"></span>'
    when :num
      "0"
    else
      raise "Unknown format in FalseClass.f: #{format}. Needs to be :yn, :tf, :icon, or :num."
  end
end