Module: Concordion::PluralToSingularUtility

Included in:
StringUtility
Defined in:
lib/concordion/string_utility.rb

Instance Method Summary collapse

Instance Method Details

#singular(str) ⇒ Object



33
34
35
# File 'lib/concordion/string_utility.rb', line 33

def singular(str)
  str.sub(/s$/, "")
end