Class: String
Instance Method Summary collapse
-
#pluralize_to_sym ⇒ Object
pluralizes a string and turns it into a symbol Example: “apple”.pluralize_to_sym # => :apples.
Instance Method Details
#pluralize_to_sym ⇒ Object
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 |