title: How to get a filename from an IO object in ruby
body: <p>In ruby... </p>
  
  <p>I have an IO object created by an external process, which I need to get the file name from.
  However I only seem to be able to get the File descriptor (3), which is not very useful to me.</p>
  
  <p>Is there a way to get the filename from this object or even to get a File Object?</p>
  
  <p>I am getting the IO object from notifier. So this may be a way of getting the file path as well?</p>