playground/sand.rb in pry-moves-0.1.8 vs playground/sand.rb in pry-moves-0.1.9
- old
+ new
@@ -1,84 +1,23 @@
require 'pry-moves'
require './tracer.rb'
+require './playground.rb'
-
-def fi(param)
- a = 2 + 1
- puts param
+def debug?(something)
+ puts something
end
-class A
-
- def initialize
- puts :xuilo
- end
-
- def aa
- puts 'aa: step 1'
- puts 'aa: step 2'
- end
-
- def bb
- debug_redirect = :aa
- hide_from_stack = true
- puts 'bb: step 1'
- puts 'bb: step 2'
- aa
- end
-
- def cc
- koko = :love
- binding.pry
- bb
- (2..4).each do |i|
- puts i
- end
- puts :two
- end
- alias cc_al cc
-
+def sentence
+ :opa
end
-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 aaa
+ puts :ok
+ "rule#{1}"
+ binding.pry if debug? "rule#{1}"
+ puts :ok
-def ff
- fff
- puts :aaa
end
-ff
-
-puts :prepare
-
-A.new.cc_al
-A.new.cc_al
-
-
-bb = 1
-
-exit
-
-pp = 123 if debucher?
-binding.pry if debucher?
-
binding.pry
-
-puts :ok
+aaa