Sha256: e74dd2d556d8db5d739594b63aa9ae39bce05bd8a3db1338d1d98895a02a7aae

Contents?: true

Size: 131 Bytes

Versions: 22

Compression:

Stored size: 131 Bytes

Contents

# monkey patch camel-casing

class String
  def camelcase
    self.gsub(/(_(.))/) { $2.upcase}.gsub(/^(.)/) { $1.upcase }
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
citygrid_api-0.0.7 lib/string_ext.rb
citygrid_api-0.0.6 lib/string_ext.rb