Exception: Cucumber::CucumberExpressions::TheEndOfLineCannotBeEscaped

Inherits:
CucumberExpressionError show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/lib/cucumber/cucumber_expressions/errors.rb

Instance Method Summary collapse

Methods inherited from CucumberExpressionError

#build_message, #point_at, #point_at_located

Constructor Details

#initialize(expression) ⇒ TheEndOfLineCannotBeEscaped

Returns a new instance of TheEndOfLineCannotBeEscaped.



114
115
116
117
118
119
120
121
122
123
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/lib/cucumber/cucumber_expressions/errors.rb', line 114

def initialize(expression)
  index = expression.codepoints.length - 1
  super(build_message(
            index,
            expression,
            point_at(index),
            'The end of line can not be escaped',
            "You can use '\\\\' to escape the the '\\'"
        ))
end