class Handlebars::Helpers::StringFormatting::Constantize
CONSTANT case the characters in the given 'string'.
Public Instance Methods
parse(value)
click to toggle source
Parse will CONSTANT case the characters in the given 'string'.
@example
puts Constantize.new.parse('the quick brown fox 99') THE_QUICK_BROWN_FOX99
@return [String] value converted to constant case
# File lib/handlebars/helpers/string_formatting/constantize.rb, line 23 def parse(value) tokenizer.parse(value, separator: '_').upcase end