playground/sand.rb in pry-moves-0.1.7 vs playground/sand.rb in pry-moves-0.1.8

- old
+ new

@@ -8,52 +8,67 @@ end class A def initialize - hide_from_stack = true puts :xuilo end - def kozi - puts 'aa2 1' - puts 'aa2 2' - end - def aa - debug_redirect = :kozi puts 'aa: step 1' puts 'aa: step 2' - kozi end def bb - #debug_redirect = :aa + debug_redirect = :aa + hide_from_stack = true puts 'bb: step 1' puts 'bb: step 2' aa end def cc - #debug_redirect = :bb - hide_from_stack = true koko = :love + binding.pry bb (2..4).each do |i| puts i end puts :two end alias cc_al cc end -require './playground.rb' -Playground.new.basic_next +def fff + binding.pry # stop in native_block + #2.times do |i| + iterator do |i| + dummy = 1 # inside block + return + dummy = 2 + end + puts :ss + :after_block # after block +end +def iterator + 2.times do |i| + dummy = :pre_yield # pre_yield + yield i + :post_yield # post_yield + end +end + +def ff + fff + puts :aaa +end + +ff + puts :prepare -binding.pry A.new.cc_al A.new.cc_al bb = 1