seattlerb/flog — pull request #17 by adamsanderson (2012-12-15 05:50:34+00:00)
Title: Make flog operate on strings

I broke out the method actually responsible for doing the flogging from the method responsible for reading in the ruby source. This is a little bit cleaner, and makes it easier to use Flog with arbitrary content.

In my specific case I wanted to call Flog as a library, but couldn't always pass in a file path, and although you could hack around with $stdin, I think this is cleaner.