Methods

Files

Kramdown::Utils

Utils Module

This module contains utility class/modules/methods that can be used by both parsers and converters.

Constants

OrderedHash

Public Class Methods

camelize(name) click to toggle source

Treat name as if it were snake cased (e.g. snake_case) and camelize it (e.g. SnakeCase).

# File lib/kramdown/utils.rb, line 35
def self.camelize(name)
  name.split('_').inject('') {|s,x| s << x[0..0].upcase + x[1..-1] }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.