On 5/9/06, Peter Szinek <peter / rubyrailways.com> wrote:
> I am new to Ruby etc. etc. (all the usual disclaimer about how i can not
> code in Ruby yet etc), so probably because of this i was not able to
> find something like
>
> myFile.basename
> resp
> myFile.anything_which_returns_a_sensible_filename_like_string
>
> and not
>
> File.basename(myFile)
>
> which i find too verbose for Ruby.
> By browsing the reference  part of the PickAxe 2nd ed, i did not find
> any alternative to File.basename. Can somebody help me with this?

Look up Pathname, it's probably what you want.

--
Christoffer Sawicki