You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 years ago
1234567891011121314151617
  1. # frozen_string_literal: true
  2. module Cucumber
  3. module Gherkin
  4. module I18n
  5. class << self
  6. def code_keyword_for(gherkin_keyword)
  7. gherkin_keyword.gsub(/[\s',!]/, '').strip
  8. end
  9. def code_keywords_for(gherkin_keywords)
  10. gherkin_keywords.reject { |kw| kw == '* ' }.map { |kw| code_keyword_for(kw) }
  11. end
  12. end
  13. end
  14. end
  15. end

No Description

Contributors (1)