Sha256: 978034bfeaacfc18fb4237d542705e7f16ff4c54a04ef706337e5ea87984bfb8

Contents?: true

Size: 80 Bytes

Versions: 10

Compression:

Stored size: 80 Bytes

Contents

class String
  def titleize
    split(/(\W)/).map(&:capitalize).join
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
canals-0.9.1 lib/canals/core_ext/string.rb
canals-0.9.0 lib/canals/core_ext/string.rb
canals-0.8.7 lib/canals/core_ext/string.rb
canals-0.8.6 lib/canals/core_ext/string.rb
canals-0.8.5 lib/canals/core_ext/string.rb
canals-0.8.4 lib/canals/core_ext/string.rb
canals-0.8.3 lib/canals/core_ext/string.rb
canals-0.8.2 lib/canals/core_ext/string.rb
canals-0.8.1 lib/canals/core_ext/string.rb
canals-0.8.0 lib/canals/core_ext/string.rb