class Pragma::Filter::Scope
Attributes
scope[R]
Public Class Methods
new(scope:, **other)
click to toggle source
Calls superclass method
Pragma::Filter::Base::new
# File lib/pragma/filter/scope.rb, line 8 def initialize(scope:, **other) super(**other) @scope = scope end
Public Instance Methods
apply(relation:, value:)
click to toggle source
# File lib/pragma/filter/scope.rb, line 13 def apply(relation:, value:) relation.public_send(scope, value) end