Sha256: b8de637714ff931cfd9b2cca22fff512928bb0f615474f95d81063553d7cb8c1
Contents?: true
Size: 510 Bytes
Versions: 29
Compression:
Stored size: 510 Bytes
Contents
# typed: true # Copyright (c) 2015 Sqreen. All Rights Reserved. # Please refer to our terms for more information: https://www.sqreen.com/terms.html require 'sqreen/cb' module Sqreen class RunWhenCalledCB < CB def initialize(klass, method, &block) super(klass, method) raise 'missing block' unless block_given? @block = block end def pre(_inst, _args, _budget = nil, &_block) # FIXME: implement this removal @remove_me = true @block.call end end end
Version data entries
29 entries across 29 versions & 1 rubygems