Sha256: dbdefd6d3331e54386eef8543496d5fa09db4ed3c8235beaf5c09cb0d0a55058

Contents?: true

Size: 129 Bytes

Versions: 212

Compression:

Stored size: 129 Bytes

Contents

# frozen_string_literal: true

class String
  def my_titleize
    self.gsub(/\b(['’]?[a-z])/) { "#{$1.capitalize}" }
  end
end

Version data entries

212 entries across 212 versions & 2 rubygems

Version Path
bolognese-2.3.2 lib/bolognese/string.rb
bolognese-2.3.0 lib/bolognese/string.rb
bolognese-2.2.0 lib/bolognese/string.rb
bolognese-2.1.1 lib/bolognese/string.rb
bolognese-2.1.0 lib/bolognese/string.rb
bolognese-2.0.3 lib/bolognese/string.rb
bolognese-2.0.2 lib/bolognese/string.rb
bolognese-2.0.1 lib/bolognese/string.rb
bolognese-2.0.0 lib/bolognese/string.rb
bolognese-1.11.5 lib/bolognese/string.rb
bolognese-1.11.4 lib/bolognese/string.rb
bolognese-1.11.3 lib/bolognese/string.rb
bolognese-1.11.2 lib/bolognese/string.rb
bolognese-1.11.0 lib/bolognese/string.rb
bolognese-1.10.0 lib/bolognese/string.rb
bolognese-1.9.18 lib/bolognese/string.rb
briard-2.4.2 lib/briard/string.rb
briard-2.4.1 lib/briard/string.rb
briard-2.4 lib/briard/string.rb
briard-2.3.1 lib/briard/string.rb