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

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
empathy-0.1.0 rubyspec/core/kernel/fixtures/caller_fixture2.rb
empathy-0.0.1.RC2 rubyspec/core/kernel/fixtures/caller_fixture2.rb
empathy-0.0.1.RC0 rubyspec/core/kernel/fixtures/caller_fixture2.rb