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
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/gherkin-2.11.1/lib/gherkin/formatter/regexp_filter.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/gherkin-2.11.1/lib/gherkin/formatter/regexp_filter.rb
candlepin-api-0.4.0 bundle/ruby/gems/gherkin-2.11.1/lib/gherkin/formatter/regexp_filter.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.8 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.8-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.8-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.8-java lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.7 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.7-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.7-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.7-java lib/gherkin/formatter/regexp_filter.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.6 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.6-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.6-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.6-java lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.5 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.5-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.5-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb