Hi again, please let me know if this
should go to Ruby Talk instead. I could not find the answer anywhere.
I have code that currently does this:
path
= Pathname.new('/usr/bin') puts
path.realpath
But Ruby 1.9 (trunk) errors out:
$
/usr/local/ruby-1.9/bin/irb irb(main):002:0>
require 'pathname' =>
true irb(main):003:0>
Pathname.new('/usr/bin') ArgumentError:
wrong number of arguments(1 for 0)
from (irb):3:in
`initialize'
from (irb):3:in
`new'
from (irb):3
from /usr/local/ruby-1.9/bin/irb:12:in
`<main>' What is the Ruby 1.9 equivalent?