Sha256: 9a9ce5c88abea997be25ae3da2dee3ab26690588d281b96dc962f05bdc5bba18

Contents?: true

Size: 374 Bytes

Versions: 371

Compression:

Stored size: 374 Bytes

Contents

module Gherkin
  module Formatter
    class RegexpFilter
      def initialize(regexen)
        @regexen = regexen
      end

      def eval(tags, names, ranges)
        @regexen.detect do |regexp| 
          names.detect do |name|
            name =~ regexp
          end
        end
      end

      def filter_table_body_rows(rows)
        rows
      end
    end
  end
end

Version data entries

371 entries across 366 versions & 10 rubygems

Version Path
gherkin-2.8.0-java lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.7 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.7-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.7-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.7-java lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.6 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.6-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.6-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.6-java lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.5 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.5-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.5-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.5-java lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.4 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.4-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.4-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.4-java lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.3 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.3-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.7.3-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb