class CQL::NameFilter

Not a part of the public API. Subject to change at any time.

Public Instance Methods

execute(input, negate) click to toggle source

Filters the input models so that only the desired ones are returned

# File lib/cql/filters.rb, line 86
def execute(input, negate)
  method = negate ? :reject : :select

  input.send(method) do |object|
    content_match?([object.name])
  end
end