Sha256: 5b7987e8a2c64167d5faaad35766fbf950cf5888162118d6eb23054ff1e4c332
Contents?: true
Size: 302 Bytes
Versions: 2
Compression:
Stored size: 302 Bytes
Contents
# frozen_string_literal: true module Pragma module Filter class Boolean < Base attr_reader :scope def initialize(scope:, **other) super(**other) @scope = scope end def apply(relation:, **) relation.public_send(scope) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pragma-2.5.0 | lib/pragma/filter/boolean.rb |
pragma-2.4.0 | lib/pragma/filter/boolean.rb |