Class: Gherkin::Formatter::TagFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/gherkin/formatter/tag_filter.rb

Instance Method Summary collapse

Constructor Details

#initialize(tags) ⇒ TagFilter

Returns a new instance of TagFilter


6
7
8
# File 'lib/gherkin/formatter/tag_filter.rb', line 6

def initialize(tags)
  @tag_expression = TagExpression.new(tags)
end

Instance Method Details

#evaluate(tags, names, ranges) ⇒ Object


10
11
12
# File 'lib/gherkin/formatter/tag_filter.rb', line 10

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

#filter_table_body_rows(rows) ⇒ Object


14
15
16
# File 'lib/gherkin/formatter/tag_filter.rb', line 14

def filter_table_body_rows(rows)
  rows
end