Module: Jekyll::Titlize
- Defined in:
- jekyll/_plugins/titlize.rb
Instance Method Summary collapse
Instance Method Details
#titlize(input) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'jekyll/_plugins/titlize.rb', line 14 def titlize(input) if (input != nil) (input.downcase).gsub(/\w+/) do |word| word.capitalize end else return nil end end |