class Cucumber::CucumberExpressions::ParameterIsNotAllowedInOptional

Public Class Methods

new(node, expression) click to toggle source
Calls superclass method
# File lib/cucumber/cucumber_expressions/errors.rb, line 93
def initialize(node, expression)
  super(
    build_message(
      node.start,
      expression,
      point_at_located(node),
      'An optional may not contain a parameter type',
      "If you did not mean to use an parameter type you can use '\\{' to escape the '{'"
    )
  )
end