Hal Fulton wrote:
> Here's a little something I like. YMMV.
> 
> Hal
> 
> 
>    require 'pathname'
> 
>    class Pathname
>      alias / +
>    end
> 
>    home = Pathname.new("/home/hal")
>    proj = home/"projects"
>    foo  = home/"projects/foobar"

That's pretty freaking nifty.  Thanks Hal.

-- 
Posted via http://www.ruby-forum.com/.