Sha256: e9a133cba1ac820b8daf147884e36ae11264266fa7fede396f94a6849f367c2c

Contents?: true

Size: 910 Bytes

Versions: 29

Compression:

Stored size: 910 Bytes

Contents

require 'pry'
require 'pry-moves'

class Test

  def initialize(i)
    @index = i
  end

  def test
    a = 1
    b = 2
  end

  def pimpa
    pop = 3
    pop = 4
  end

  def small
    binding.pry
    p = 1
  end

  def zaloop(p = -1)
    op = p
    binding.pry if p == 0 and @index == 2
    #raise 'abc'
    iterator do |i|
      aa = 1
      zaloop i if op == -1
      aa = 2
      aa = 2
    end
  rescue
    a = 3
  end

  def straight
    popa = 1
    a = binding
    iterator do |i|
      b = binding
      pop = 1
      pop = i
      pop = 2
      #binding.pry
    end
  end

  def iterator
    1.times do |i|
      pop = 1
      yield i
      pop = 2
    end
  end

end

threads = 10.times.map do |i|
  Thread.new do
    t = Test.new i
    #t.small
    t.zaloop rescue a = :caught
    #t.straight
  end
end
threads.each(&:join)


puts :zoo
puts :zoo2

exit

t.test and t.pimpa

puts "here_goes_end\n"

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
pry-moves-1.0.15 playground/recursions.rb
pry-moves-1.0.14 playground/recursions.rb
pry-moves-1.0.13 playground/recursions.rb
pry-moves-1.0.12 playground/recursions.rb
pry-moves-1.0.11 playground/recursions.rb
pry-moves-1.0.10 playground/recursions.rb
pry-moves-1.0.9 playground/recursions.rb
pry-moves-1.0.8 playground/recursions.rb
pry-moves-1.0.7 playground/recursions.rb
pry-moves-1.0.6 playground/recursions.rb
pry-moves-1.0.5 playground/recursions.rb
pry-moves-1.0.4 playground/recursions.rb
pry-moves-1.0.3 playground/recursions.rb
pry-moves-1.0.2 playground/recursions.rb
pry-moves-1.0.1 playground/recursions.rb
pry-moves-1.0.0 playground/recursions.rb
pry-moves-0.1.13 playground/recursions.rb
pry-moves-0.1.12 playground/recursions.rb
pry-moves-0.1.10 playground/recursions.rb
pry-moves-0.1.9 playground/recursions.rb