Sha256: 37caceabfcafc06bc5964821b4148d8988ea19cdb953133c68ca485601678cd7

Contents?: true

Size: 494 Bytes

Versions: 83

Compression:

Stored size: 494 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/caller_fixture2'
2 + 2
3 + 3
CallerFixture.capture do
  5 + 5
  6 + 6
  :seven
  8 + 8
end

module CallerFixture
  module_function
  def example_proc
    Proc.new do
      1 + 1
      2 + 2
    end
  end

  def entry_point
    second
  end

  def second
    third
  end

  def third
    b = fourth do
      1 + 1
      caller(0)
    end
    2 + 2
    3 + 3
    return b
  end

  def fourth(&block)
    return block
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
rhodes-1.4.2 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture1.rb
rhodes-1.4.1 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture1.rb
rhodes-1.4.0 spec/framework_spec/app/spec/core/kernel/fixtures/caller_fixture1.rb