hoodwink.d enhanced


Ruby Classes as Directories, Methods as Files #

by why in inspect

A fantastic hack by Shinichiro H! You can pretend to read all about it, tangled in the Japanese, and at least you can nod at the code:

 $ ruby rubyfs.rb /mnt/ruby
 $ cd /mnt/ruby
 $ cat Time/now
 Thu Mar 23 18:12:35 EST 2006
 $ ls Array
 .. a list of all Array methods ..

This is for you Linux kids only. Compile and load the FUSE kernel module. Install FuseFS. Run rubyfs.rb. We’ve been through this once with RailsFS, this extension’s a classic.

said on 24 Mar 2006 at 21:52

Oh My. It looks almost like Facets’ core extensions directory :)

Now if only it could interact with ri. Hmmm… perhaps spoofing ‘man’ or ‘info’.

said on 25 Mar 2006 at 18:22

Hrm…. how do you create new objects? can you?

said on 28 Mar 2006 at 13:23

Welcome back! This reminds of me Plan9 (not necessarily from outer space)

Comments are closed for this entry.