class Handlebars::Helpers::StringFormatting::Snake
snake case the characters in the given 'string'.
Public Instance Methods
parse(value)
click to toggle source
Parse will snake case the characters in the given 'string'.
@side effects
All text is in lower case
@example
puts Snake.new.parse('the quick brown fox 99') the_quick_brown_fox99
@return [String] value converted to snake case
# File lib/handlebars/helpers/string_formatting/snake.rb, line 27 def parse(value) tokenizer.parse(value, separator: '_', forced_separator: true) end