Method: Rodbot::Refinements#camelize

Defined in:
lib/rodbot/refinements.rb

#camelizeString

Convert from under_scores to CamelCase

Examples:

camelize('foo_bar')   # => 'FooBar'

Returns:

  • (String)

    CamelCased string

[View source]

16
17
18
19
20
# File 'lib/rodbot/refinements.rb', line 16

refine String do
  def camelize
    Rodbot::Refinements.inflector.camelize(self, nil)
  end
end