class Handlebars::Helpers::StringFormatting::Slash
slash case the characters in the given 'string'.
Public Instance Methods
parse(value)
click to toggle source
Parse will slash case the characters in the given 'string'.
@side effects
Text casing is preserved.
@example
puts Slash.new.parse('the Quick brown Fox 99') the/Quick/brown/Fox99
@return [String] value converted to slash notation
# File lib/handlebars/helpers/string_formatting/slash.rb, line 27 def parse(value) tokenizer.parse(value, preserve_case: true, separator: '/') end