RAA - nodewrap/0.2

nodewrap / 0.2

Short description: An extension for dumping and loading nodes, modules and classes
Category: Library/Marshal
Status: experimental, but usable
Created: 2003-11-09 04:21:38 GMT
Last update: -
Owner: Paul Brannan (Projects of this owner)
Homepage: http://rubystuff.org/nodewrap/
Download: http://rubystuff.org/nodewrap/nodewrap-0.2.tar.gz
License: Ruby's
Dependency:
None
Description:

Nodewrap is Ruby module that provides direct access to Ruby's internal node structure. This isn't particularly useful in and of itself, but Node objects can be dumped and loaded using Ruby's builtin marshalling mechanism. Methods to dump and load classes and modules are also provided, and with a little work, entire class hierarchies can be dumped from one Ruby process and loaded into another.

Sample code:

class Foo
def foo; puts "this is a test..."; end
end

s = Marshal.dump(Foo)
p Marshal.load(s) #=> #<Class 0lx4027be20>

Versions: [0.3 (2004-08-02)] [0.2 (-)]

Edit this project (for project owner)

back to RAA top