Although you just end up doing this pn('a/b') when it's within other calls anyway. Plus it's yet another pass through kernel method. Maybe this would be better: $P = lambda { |s| Pathname.new(s) } $P['a/b'] Just a thought. T.