Class: ReeString::Pluralize
- Inherits:
-
Object
- Object
- ReeString::Pluralize
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_string/package/ree_string/functions/pluralize.rb
Instance Method Summary collapse
Instance Method Details
#call(count, single, plural) ⇒ Object
9 10 11 12 |
# File 'lib/ree_lib/packages/ree_string/package/ree_string/functions/pluralize.rb', line 9 def call(count, single, plural) word = count == 1 ? single : plural "#{count} #{word}" end |