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-2.2.5.beta.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.4.beta.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.3 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.3.beta.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.2 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.2.beta.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.1.beta.2 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.1.beta.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.0 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.0.beta.3 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.0.beta.2 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.2.0.beta.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.1.0 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.0.3 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.0.2 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.0.0 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.0.0.rc2 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.0.0.rc1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb
rhodes-2.0.0.beta11 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture2.rb