RubyFlow The Ruby and Rails community linklog

SuperIO

Turn everything into an IO with this little snippet. Anything more you ever wanted to be an IO?

Comments

This is a very cool snippet. Perhaps you should raise an ArgumentError (for specificity), unless you’d rather keep things as simple as possible.

Also, it would be cool to be able to take an IO object and convert it into a File or Tempfile. Thoughts?

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in