Add onLineContaining ...

...as it will often be easier to test against a particular line by referencing its content rather than figuring out the line number.
Yeah, the double punctuation is a bit ugly.  I'll actually just do parens _instead_ of brackets because this is an english sentence and parens are the proper punctuation here.