class Sqreen::RunWhenCalledCB
Public Class Methods
new(klass, method, &block)
click to toggle source
Calls superclass method
Sqreen::CB::new
# File lib/sqreen/run_when_called_cb.rb, line 10 def initialize(klass, method, &block) super(klass, method) raise 'missing block' unless block_given? @block = block end
Public Instance Methods
pre(_inst, _args, _budget = nil, &_block)
click to toggle source
# File lib/sqreen/run_when_called_cb.rb, line 17 def pre(_inst, _args, _budget = nil, &_block) # FIXME: implement this removal @remove_me = true @block.call end