Class: String

Inherits:
Object show all
Defined in:
lib/extensions/string.rb

Instance Method Summary collapse

Instance Method Details

#pluralize_to_symObject

pluralizes a string and turns it into a symbol Example:

"apple".pluralize_to_sym    # => :apples


8
9
10
# File 'lib/extensions/string.rb', line 8

def pluralize_to_sym
  self.pluralize.to_sym
end