I couldn't get `IO#read` to work for this use case, but perhaps you can find a way.  `#from_resource` does provably work.