class Cucumber::CucumberExpressions::CantEscape

Public Class Methods

new(expression, index) click to toggle source
Calls superclass method
# File lib/cucumber/cucumber_expressions/errors.rb, line 65
def initialize(expression, index)
  super(
    build_message(
      index,
      expression,
      point_at(index),
      "Only the characters '{', '}', '(', ')', '\\', '/' and whitespace can be escaped",
      "If you did mean to use an '\\' you can use '\\\\' to escape it"
    )
  )
end