Sha256: c3e912d0b7196cd9095cd3a81f5f6cdfa1d22cfcf1f30cb35dddbe47c9123257
Contents?: true
Size: 387 Bytes
Versions: 41
Compression:
Stored size: 387 Bytes
Contents
# frozen_string_literal: true module Cucumber module Gherkin module I18n class << self def code_keyword_for(gherkin_keyword) gherkin_keyword.gsub(/[\s',!]/, '').strip end def code_keywords_for(gherkin_keywords) gherkin_keywords.reject { |kw| kw == '* ' }.map { |kw| code_keyword_for(kw) } end end end end end
Version data entries
41 entries across 41 versions & 4 rubygems