Method: Cucumber::Ast::StepInvocation#actual_keyword

Defined in:
lib/cucumber/ast/step_invocation.rb

#actual_keywordObject



127
128
129
130
131
132
133
134
# File 'lib/cucumber/ast/step_invocation.rb', line 127

def actual_keyword
  repeat_keywords = [language.but_keywords, language.and_keywords].flatten
  if repeat_keywords.index(@step.keyword) && previous
    previous.actual_keyword
  else
    keyword
  end
end