playground/sand.rb in pry-moves-1.0.1 vs playground/sand.rb in pry-moves-1.0.2

- old
+ new

@@ -1,49 +1,51 @@ +# cd playground +# be ruby sand.rb + require 'pry-moves' require './tracer.rb' def fi(param) a = 2 + 1 puts param end -class A +class Sand def initialize puts :xuilo end - def aa + def some_logic puts 'aa: step 1' puts 'aa: step 2' end - def bb + def method_with_hidden_stack debug_redirect = :aa hide_from_stack = true puts 'bb: step 1' puts 'bb: step 2' - aa + some_logic end - def cc + def debugged_method koko = :love - binding.pry - bb + debug + method_with_hidden_stack (2..4).each do |i| puts i end puts :two end - alias cc_al cc + alias debugged_method_alias debugged_method end puts :prepare -A.new.cc_al -A.new.cc_al +Sand.new.method_with_hidden_stack bb = 1 exit