Sha256: 2127d4d908433937873371d384c3bef793a0a688332a8d5ddd41b049671c15a5
Contents?: true
Size: 414 Bytes
Versions: 138
Compression:
Stored size: 414 Bytes
Contents
module CallerFixture def block @block end module_function :block def block=(block) @block = block end module_function :block= def capture(&block) @block = block end module_function :capture def caller_of(block) eval("caller(0)", block.binding) end module_function :caller_of def eval_caller(depth) eval("caller(#{depth})") end module_function :eval_caller end
Version data entries
138 entries across 138 versions & 3 rubygems