Sha256: 7795672c587b7978d59de138661ff29245a9b1de6c1f8cfaaef456b6ecdf3416

Contents?: true

Size: 386 Bytes

Versions: 6

Compression:

Stored size: 386 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

6 entries across 6 versions & 1 rubygems

Version Path
cucumber-3.1.0 lib/cucumber/gherkin/i18n.rb
cucumber-3.0.2 lib/cucumber/gherkin/i18n.rb
cucumber-3.0.1 lib/cucumber/gherkin/i18n.rb
cucumber-3.0.0 lib/cucumber/gherkin/i18n.rb
cucumber-3.0.0.pre.2 lib/cucumber/gherkin/i18n.rb
cucumber-3.0.0.pre.1 lib/cucumber/gherkin/i18n.rb