Sha256: 81d5bafcc2f06bd63d3bbb4dc52f1ef3731d28616b89000b4f87405427cf651d

Contents?: true

Size: 111 Bytes

Versions: 7

Compression:

Stored size: 111 Bytes

Contents

# frozen_string_literal: true

class String
  def camelize
    split(/[._-]/).map(&:capitalize).join
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
xezat-0.3.1 lib/xezat/ext/string.rb
xezat-0.3.0 lib/xezat/ext/string.rb
xezat-0.2.3 lib/xezat/ext/string.rb
xezat-0.2.2 lib/xezat/ext/string.rb
xezat-0.2.1 lib/xezat/ext/string.rb
xezat-0.2.0 lib/xezat/ext/string.rb
xezat-0.1.2 lib/xezat/ext/string.rb