Call `write` on the pathname object:

```
(bin/name).write <<-EOS
  line 1
  line 2
EOS
```

Write will create the path if it doesn't exist, so the `mkdir bin` above can be removed after this.