Class: TrueClass
- Inherits:
-
Object
- Object
- TrueClass
- Defined in:
- lib/humanize_boolean.rb
Instance Method Summary collapse
-
#humanize ⇒ Object
The humanize method to return the string “Yes” or a translation of that for the key locale.boolean.yes.
Instance Method Details
#humanize ⇒ Object
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 |