Sha256: fce4e3f6d9fcb44d29f249dc8faa3457952a1d3f04472ef92271a49d92873a0f
Contents?: true
Size: 495 Bytes
Versions: 9
Compression:
Stored size: 495 Bytes
Contents
# 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
9 entries across 9 versions & 1 rubygems