Permalink
Browse files

added example3.rb

  • Loading branch information...
1 parent 5646f27 commit 7318509a3820edc1afa5504041f65678d182bd57 @banister banister committed Jul 12, 2012
Showing with 46 additions and 0 deletions.
  1. +46 −0 examples/example3.rb
View
46 examples/example3.rb
@@ -0,0 +1,46 @@
+unless Object.const_defined? :PryStackExplorer
+ $:.unshift File.expand_path '../../lib', __FILE__
+ require 'pry'
+end
+
+require 'pry-stack_explorer'
+
+def b
+ x = 30
+ proc {
+ c
+ }.call
+end
+
+def c
+ u = 50
+ V.new.beta
+end
+
+# hello
+class V
+ def beta
+ gamma
+ end
+
+ def gamma
+ zeta
+ end
+end
+
+def zeta
+ vitamin = 100
+ binding.pry
+end
+#
+
+proc {
+ class J
+ def alphabet(y)
+ x = 20
+ b
+ end
+ end
+}.call
+
+J.new.alphabet(122)

0 comments on commit 7318509

Please sign in to comment.