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.11.1-java lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.0 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.0-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.0-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.11.0-java lib/gherkin/formatter/regexp_filter.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/gherkin-2.3.3/lib/gherkin/formatter/regexp_filter.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/gherkin-2.9.0/lib/gherkin/formatter/regexp_filter.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/regexp_filter.rb
ftl-0.2.0 vendor/bundle/gems/gherkin-2.10.0/lib/gherkin/formatter/regexp_filter.rb
gherkin-2.10.0 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.10.0-x86-mswin32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.10.0-x86-mingw32 lib/gherkin/formatter/regexp_filter.rb
gherkin-2.10.0-java lib/gherkin/formatter/regexp_filter.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/regexp_filter.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/regexp_filter.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/regexp_filter.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/regexp_filter.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/regexp_filter.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/gherkin-2.3.3/lib/gherkin/formatter/regexp_filter.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/gherkin-2.9.0/lib/gherkin/formatter/regexp_filter.rb