Escapes a pipes and backslashes:
| becomes |
\ becomes \
This is used in the pretty formatter.
# File lib/gherkin/formatter/escaping.rb, line 10 10: def escape_cell(s) 11: s.gsub(/\|/, "\\|").gsub(/\\(?!\|)/, "\\\\\\\\") 12: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.