Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added sample code.

  • Loading branch information...
commit 641c433f66a4eda810ff540492f27b19fc57b285 1 parent 40703e2
Paul Brannan authored
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'
Please sign in to comment.
Something went wrong with that request. Please try again.