Ruby Classes as Directories, Methods as Files #
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.
trans
Oh My. It looks almost like Facets’ core extensions directory :)
Now if only it could interact with ri. Hmmm… perhaps spoofing ‘man’ or ‘info’.
mindtriggerz
Hrm…. how do you create new objects? can you?
LninYo
Welcome back! This reminds of me Plan9 (not necessarily from outer space)
Comments are closed for this entry.