class Handlebars::Helpers::StringFormatting::DoubleColon

double_colon notation for the characters in the given 'string'. aka ruby namespace

Public Instance Methods

parse(value) click to toggle source

Parse will double_colon notation for the characters in the given 'string'. aka ruby namespace

@side effects

Text casing is preserved.

@example

puts DoubleColon.new.parse('the quick brown fox 99')

The::Quick::Brown::Fox99

@return [String] value converted to double_colon notation

# File lib/handlebars/helpers/string_formatting/double_colon.rb, line 27
def parse(value)
  tokenizer.parse(value, preserve_case: true, separator: '::')
end