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.28 lib/string_ext.rb
citygrid_api-0.0.27 lib/string_ext.rb
citygrid_api-0.0.26 lib/string_ext.rb
citygrid_api-0.0.25 lib/string_ext.rb
citygrid_api-0.0.24 lib/string_ext.rb
citygrid_api-0.0.23 lib/string_ext.rb
citygrid_api-0.0.22 lib/string_ext.rb
citygrid_api-0.0.21 lib/string_ext.rb
citygrid_api-0.0.20 lib/string_ext.rb
citygrid_api-0.0.19 lib/string_ext.rb
citygrid_api-0.0.18 lib/string_ext.rb
citygrid_api-0.0.17 lib/string_ext.rb
citygrid_api-0.0.16 lib/string_ext.rb
citygrid_api-0.0.15 lib/string_ext.rb
citygrid_api-0.0.14 lib/string_ext.rb
citygrid_api-0.0.13 lib/string_ext.rb
citygrid_api-0.0.12 lib/string_ext.rb
citygrid_api-0.0.11 lib/string_ext.rb
citygrid_api-0.0.10 lib/string_ext.rb
citygrid_api-0.0.9 lib/string_ext.rb