Sha256: fabbfabcf9cd5c2af2df89adae7cba0d398eeb92a61c8327fd0337828496d204

Contents?: true

Size: 351 Bytes

Versions: 15

Compression:

Stored size: 351 Bytes

Contents

require 'gherkin/tag_expression'

module Gherkin
  module Formatter
    class TagFilter
      def initialize(tags)
        @tag_expression = TagExpression.new(tags)
      end

      def evaluate(tags, names, ranges)
        @tag_expression.evaluate(tags.uniq)
      end

      def filter_table_body_rows(rows)
        rows
      end
    end
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/gherkin-2.12.2/lib/gherkin/formatter/tag_filter.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/gherkin-2.12.2/lib/gherkin/formatter/tag_filter.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/gherkin-2.12.2/lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.2 lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.2-x86-mswin32 lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.2-x86-mingw32 lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.2-java lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.1 lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.1-x86-mswin32 lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.1-x86-mingw32 lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.1-java lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.0 lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.0-x86-mingw32 lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.0-x86-mswin32 lib/gherkin/formatter/tag_filter.rb
gherkin-2.12.0-java lib/gherkin/formatter/tag_filter.rb