# Re: Pathname

**URL:** <https://www.ruby-forum.com/t/re-pathname/95370>\
**Category:** Ruby\
**Created:** [May 30, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/re-pathname/95370 "2006-05-30T18:24:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [May 30, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/re-pathname/95370/1 "2006-05-30T18:24:45Z")

</div>

> > 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. 🙂

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.
