From: Nate_Wiger@... Date: 2008-05-20T02:39:00+09:00 Subject: Ruby 1.9 Pathname.new('/usr/bin') equivalent? This is a multipart message in MIME format. --=_alternative 0060F4748825744E_= Content-Type: text/plain; charset="US-ASCII" 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 `
' What is the Ruby 1.9 equivalent? Thanks, Nate Wiger PlayStation --=_alternative 0060F4748825744E_= Content-Type: text/html; charset="US-ASCII"
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?

Thanks,

Nate Wiger
PlayStation --=_alternative 0060F4748825744E_=--