Sha256: c5b18a61f39e15a59c902e7a8817f15c1de1c0a1ed37551fd90e576c93dc4be5

Contents?: true

Size: 163 Bytes

Versions: 10

Compression:

Stored size: 163 Bytes

Contents

module StringAddition
  extend ActiveSupport::Concern
  class ::String
    def capitalize_every_word
      self.split.map(&:capitalize).join(' ')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tmatt_cms-0.1.9 lib/generators/tmatt_cms/templates/concerns/string_addition.rb
tmatt_cms-0.1.8 lib/generators/tmatt_cms/templates/concerns/string_addition.rb
tmatt_cms-0.1.7 lib/generators/tmatt_cms/templates/concerns/string_addition.rb
tmatt_cms-0.1.6 lib/generators/tmatt_cms/templates/concerns/string_addition.rb
tmatt_cms-0.1.5 lib/generators/tmatt_cms/templates/concerns/string_addition.rb
tmatt_cms-0.1.4 lib/generators/tmatt_cms/templates/concerns/string_addition.rb
tmatt_cms-0.1.3 lib/generators/tmatt_cms/templates/concerns/string_addition.rb
tmatt_cms-0.1.2 lib/generators/tmatt_cms/templates/concerns/string_addition.rb
tmatt_cms-0.1.1 lib/generators/tmatt_cms/templates/concerns/string_addition.rb
tmatt_cms-0.1.0 lib/generators/tmatt_cms/templates/concerns/string_addition.rb