Or use ruby's cross platform abilities:

```ruby

file   = Tempfile.new('named.pipe)
path = file.path
file.close
```