Exception: Cucumber::CucumberExpressions::OptionalIsNotAllowedInOptional
- Inherits:
-
CucumberExpressionError
- Object
- StandardError
- CucumberExpressionError
- Cucumber::CucumberExpressions::OptionalIsNotAllowedInOptional
- 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(node, expression) ⇒ OptionalIsNotAllowedInOptional
constructor
A new instance of OptionalIsNotAllowedInOptional.
Methods inherited from CucumberExpressionError
#build_message, #point_at, #point_at_located
Constructor Details
#initialize(node, expression) ⇒ OptionalIsNotAllowedInOptional
Returns a new instance of OptionalIsNotAllowedInOptional.
102 103 104 105 106 107 108 109 110 |
# 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 102 def initialize(node, expression) super(( node.start, expression, point_at_located(node), 'An optional may not contain an other optional', "If you did not mean to use an optional type you can use '\\(' to escape the the '('. For more complicated expressions consider using a regular expression instead." )) end |