Exception: Cucumber::CucumberExpressions::TheEndOfLineCannotBeEscaped
- Inherits:
-
CucumberExpressionError
- Object
- StandardError
- CucumberExpressionError
- Cucumber::CucumberExpressions::TheEndOfLineCannotBeEscaped
- 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
-
#initialize(expression) ⇒ TheEndOfLineCannotBeEscaped
constructor
A new instance of TheEndOfLineCannotBeEscaped.
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(( index, expression, point_at(index), 'The end of line can not be escaped', "You can use '\\\\' to escape the the '\\'" )) end |