Sha256: 5011d2b6f4abe835584e4b70dfe8c09d9d3b8bb481f20b7f6290171a99eb4638
Contents?: true
Size: 752 Bytes
Versions: 2
Compression:
Stored size: 752 Bytes
Contents
# -*- coding: utf-8 -*- # #-- # Copyright (C) 2009-2013 Thomas Leitner <t_leitner@gmx.at> # # This file is part of kramdown which is licensed under the MIT. #++ # module Kramdown # == \Utils Module # # This module contains utility class/modules/methods that can be used by both parsers and # converters. module Utils autoload :Entities, 'kramdown/utils/entities' autoload :Html, 'kramdown/utils/html' autoload :OrderedHash, 'kramdown/utils/ordered_hash' autoload :Unidecoder, 'kramdown/utils/unidecoder' # Treat +name+ as if it were snake cased (e.g. snake_case) and camelize it (e.g. SnakeCase). def self.camelize(name) name.split('_').inject('') {|s,x| s << x[0..0].upcase + x[1..-1] } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kramdown-1.0.1 | lib/kramdown/utils.rb |
kramdown-1.0.0 | lib/kramdown/utils.rb |