Skip to content

Commit

Permalink
Added sample code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Brannan committed Dec 5, 2009
1 parent 40703e2 commit 641c433
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 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

4 changes: 4 additions & 0 deletions 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.