Class: TrueClass

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 “Yes” or a translation of that for the key locale.boolean.yes

true.humanize # => "Yes"


12
13
14
# File 'lib/humanize_boolean.rb', line 12

def humanize
  I18n.t "boolean.yes", :default => "Yes"
end