module Cucumber::LanguageSupport::StepDefinitionMethods

def backtrace_line

def backtrace_line
  "#{file_colon_line}:in `#{regexp.inspect}'"
end

def format_args(step_name, format)


lambda { |param| "[#{param}]" }

argument, for example:
If it is a Proc, it should take one argument and return the formatted

'%s'

Kernel#sprinf, for example:
If it is a String it should be a format string according to

The +format+ can either be a String or a Proc.

is usually called from visitors, which render output.
Formats the matched arguments of the associated Step. This method
def format_args(step_name, format)
  step_name.gzub(regexp, format)
end

def same_regexp?(regexp)

def same_regexp?(regexp)
  self.regexp == regexp
end

def step_match(name_to_match, name_to_report)

def step_match(name_to_match, name_to_report)
  if(match = regexp.match(name_to_match))
    StepMatch.new(self, name_to_match, name_to_report, match.captures)
  else
    nil
  end
end

def text_length

def text_length
  regexp.inspect.jlength
end