Sha256: 6c4436e40e011c589d1f5c5a20e421a4714b8b502081d9e3c364f203bd5719ae

Contents?: true

Size: 356 Bytes

Versions: 11

Compression:

Stored size: 356 Bytes

Contents

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

11 entries across 11 versions & 2 rubygems

Version Path
cucumber-2.99.0 lib/cucumber/gherkin/i18n.rb
mobiusloop-0.1.5 lib/cucumber/gherkin/i18n.rb
cucumber-2.4.0 lib/cucumber/gherkin/i18n.rb
mobiusloop-0.1.3 lib/cucumber/gherkin/i18n.rb
mobiusloop-0.1.2 lib/cucumber/gherkin/i18n.rb
cucumber-2.3.3 lib/cucumber/gherkin/i18n.rb
cucumber-2.3.2 lib/cucumber/gherkin/i18n.rb
cucumber-2.3.1 lib/cucumber/gherkin/i18n.rb
cucumber-2.3.0 lib/cucumber/gherkin/i18n.rb
cucumber-2.2.0 lib/cucumber/gherkin/i18n.rb
cucumber-2.1.0 lib/cucumber/gherkin/i18n.rb