Re: Pathname


#1

Daniel B. wrote:
way to define % literals in Ruby 1.8 afaik. I’m not sure about 1.9.

module Kernel
def pn(s)
Pathname.new(s)
end
end

pn %{a/b}

It almost looks like a % literal.

Hm, I suppose I could do that. :slight_smile:

Thanks,

Dan

This communication is the property of Qwest and may contain confidential
or
privileged information. Unauthorized use of this communication is
strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
destroy
all copies of the communication and any attachments.