Sha256: 3fe254a9632137891886e972b644d4535ba915a7b7c4b0c31cadf1536198b9ca

Contents?: true

Size: 79 Bytes

Versions: 26

Compression:

Stored size: 79 Bytes

Contents

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

Version data entries

26 entries across 26 versions & 4 rubygems

Version Path
octopi-0.4.5 lib/ext/string_ext.rb
octopi-0.4.4 lib/ext/string_ext.rb
octopi-0.4.3 lib/ext/string_ext.rb
octopi-0.4.2 lib/ext/string_ext.rb
octopi-0.4.1 lib/ext/string_ext.rb
octopi-0.4.0 lib/ext/string_ext.rb
octopi-0.3.0 lib/ext/string_ext.rb
dcuddeback-octopi-0.2.12 lib/ext/string_ext.rb
dcuddeback-octopi-0.2.11 lib/ext/string_ext.rb
dcuddeback-octopi-0.2.9 lib/ext/string_ext.rb
dcuddeback-octopi-0.2.8 lib/ext/string_ext.rb
devver-octopi-0.2.14 lib/ext/string_ext.rb
tpitale-octopi-0.3.0 lib/ext/string_ext.rb
devver-octopi-0.2.13 lib/ext/string_ext.rb
devver-octopi-0.2.12 lib/ext/string_ext.rb
octopi-0.2.8 lib/ext/string_ext.rb
devver-octopi-0.2.11 lib/ext/string_ext.rb
devver-octopi-0.2.10 lib/ext/string_ext.rb
devver-octopi-0.2.9 lib/ext/string_ext.rb
devver-octopi-0.2.8 lib/ext/string_ext.rb