Module: SleepingKingStudios::Tools::StringTools
- Extended by:
- StringTools
- Included in:
- StringTools
- Defined in:
- lib/sleeping_king_studios/tools/string_tools.rb
Overview
Tools for working with strings.
Instance Method Summary collapse
-
#pluralize(count, single, plural) ⇒ String
Returns the singular or the plural value, depending on the provided item count.
Instance Method Details
#pluralize(count, single, plural) ⇒ String
Returns the singular or the plural value, depending on the provided item count.
23 24 25 |
# File 'lib/sleeping_king_studios/tools/string_tools.rb', line 23 def pluralize count, single, plural 1 == count ? single : plural end |