class Pragma::Filter::Boolean

Attributes

scope[R]

Public Class Methods

new(scope:, **other) click to toggle source
Calls superclass method Pragma::Filter::Base::new
# File lib/pragma/filter/boolean.rb, line 8
def initialize(scope:, **other)
  super(**other)
  @scope = scope
end

Public Instance Methods

apply(relation:, **) click to toggle source
# File lib/pragma/filter/boolean.rb, line 13
def apply(relation:, **)
  relation.public_send(scope)
end