This post originated from an RSS feed registered with Ruby Buzz
by Red Handed.
Original Post: Ruby Classes as Directories, Methods as Files
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
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.