Sha256: 121bff51b35bf08a4583fa397654f11356a9e5a685137a722ce734d7993b3c28
Contents?: true
Size: 373 Bytes
Versions: 37
Compression:
Stored size: 373 Bytes
Contents
module Plutonium module Query class AdhocBlock < Base attr_reader :body # Initializes a AdhocBlock with a given block of code. # # @param body [Proc] The block of code for the query. def initialize(body) super() @body = body end def apply(scope, **) body.call(scope, **) end end end end
Version data entries
37 entries across 37 versions & 1 rubygems