Browse files

Added sample code.

  • Loading branch information...
1 parent 40703e2 commit 641c433f66a4eda810ff540492f27b19fc57b285 Paul Brannan committed Dec 5, 2009
Showing with 13 additions and 0 deletions.
  1. +9 −0 sample/dump_class.rb
  2. +4 −0 sample/irbrc
View
9 sample/dump_class.rb
@@ -0,0 +1,9 @@
+require 'internal/node'
+
+class Foo
+ def foo; puts "this is a test..."; end
+end
+
+s = Marshal.dump(Foo)
+p Marshal.load(s) #=> Foo
+
View
4 sample/irbrc
@@ -0,0 +1,4 @@
+require 'pp'
+require 'internal/node/pp'
+require 'internal/classtree'
+require 'internal/method/signature'

0 comments on commit 641c433

Please sign in to comment.