Class: Handlebars::Helpers::StringFormatting::BackSlash
- Inherits:
-
BaseHelper
- Object
- BaseHelper
- Handlebars::Helpers::StringFormatting::BackSlash
- Defined in:
- lib/handlebars/helpers/string_formatting/back_slash.rb
Overview
convert to back slash notation
Instance Method Summary collapse
-
#parse(value) ⇒ String
Parse will convert to back slash notation.
Methods inherited from BaseHelper
#handlebars_helper, #parse_json, #struct_to_hash, #tokenizer, #wrapper
Instance Method Details
#parse(value) ⇒ String
Parse will convert to back slash notation
27 28 29 |
# File 'lib/handlebars/helpers/string_formatting/back_slash.rb', line 27 def parse(value) tokenizer.parse(value, preserve_case: true, separator: '\\') end |