Class: CQL::LineFilter
- Inherits:
-
ContentMatchFilter
- Object
- ContentMatchFilter
- CQL::LineFilter
- Defined in:
- lib/cql/sso_filters.rb
Overview
Not a part of the public API. Subject to change at any time.
Instance Attribute Summary
Attributes inherited from ContentMatchFilter
Instance Method Summary collapse
-
#execute(input, negate) ⇒ Object
Filters the input models so that only the desired ones are returned.
Methods inherited from ContentMatchFilter
Constructor Details
This class inherits a constructor from CQL::ContentMatchFilter
Instance Method Details
#execute(input, negate) ⇒ Object
Filters the input models so that only the desired ones are returned
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/cql/sso_filters.rb', line 20 def execute(input, negate) method_for_filtering = negate ? :reject : :select method_for_text = Gem.loaded_specs['cuke_modeler'].version.version[/^0/] ? :base : :text input.send(method_for_filtering) do |tests| raw_step_lines = tests.steps.map { |step| step.send(method_for_text) } content_match?(raw_step_lines) end end |