Parent

Methods

Class/Module Index [+]

Quicksearch

String

Public Instance Methods

camelize() click to toggle source

Converts a snake_case string to CamelCase

@return [String]

# File lib/twitter/core_ext/string.rb, line 6
def camelize
  self.gsub(/\/(.?)/){"::#{$1.upcase}"}.gsub(/(?:^|_)(.)/){$1.upcase}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.