class Handlebars::Helpers::StringFormatting::Titleize
titleize case the characters in the given 'string', aka heading case
Public Instance Methods
parse(value)
click to toggle source
Parse will titleize case the characters in the given 'string', aka heading case
@side effects
Text casing set to upper case for first letters. Numbers will maintain their spacing
@example
puts Titleize.new.parse('the quick brown fox 99') The Quick Brown Fox 99
@return [String] value converted to titleize case
# File lib/handlebars/helpers/string_formatting/titleize.rb, line 28 def parse(value) tokenizer.parse(value, separator: ' ', preserve_case: true, compress_prefix_numerals: false, compress_suffix_numerals: false) .titleize end