2006/5/31, transfire / gmail.com <transfire / gmail.com>:
>   $P = lambda { |s| Pathname.new(s) }
>
>   $P['a/b']

class << Pathname
  alias [] new
end

Pathname['a/b']

P = Pathname
P['a/b']

-- 
Nobu Nakada