Sha256: 0ad83278b91fcd02faa4dcba1c405cfbaae99b57fc4ac33e036ed4d69f925c62

Contents?: true

Size: 225 Bytes

Versions: 13

Compression:

Stored size: 225 Bytes

Contents

require 'rubygems'
require 'activesupport'

class String
  # pluralizes a string and turns it into a symbol
  # Example:
  #  "apple".pluralize_to_sym    # => :apples
  def pluralize_to_sym
    self.pluralize.to_sym
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
makevoid-taza-0.8.6 lib/extensions/string.rb
scudco-taza-0.8.1 lib/extensions/string.rb
scudco-taza-0.8.3 lib/extensions/string.rb
scudco-taza-0.8.4 lib/extensions/string.rb
scudco-taza-0.8.5 lib/extensions/string.rb
scudco-taza-0.8.6 lib/extensions/string.rb
scudco-taza-0.8.7 lib/extensions/string.rb
taza-0.8.5 lib/extensions/string.rb
taza-0.8.2 lib/extensions/string.rb
taza-0.8.3 lib/extensions/string.rb
taza-0.8.4 lib/extensions/string.rb
taza-0.8.7 lib/extensions/string.rb
taza-0.8.6 lib/extensions/string.rb