Class: FalseClass

Inherits:
Object
  • Object
show all
Defined in:
lib/humanize_boolean.rb

Instance Method Summary collapse

Instance Method Details

#humanizeObject

The humanize method to return the string “No” or a translation of that for the key locale.boolean.no

true.humanize # => "No"


23
24
25
# File 'lib/humanize_boolean.rb', line 23

def humanize
  I18n.t "boolean.no", :default => "No"
end