Closed jasonlong closed 10 years ago
Looks great. :+1:
Not quite sure why you rescue exceptions and abort – won't the exceptions end the process properly? Just curious.
I saw that pattern elsewhere while looking for Ruby examples. My Ruby-fu isn't the strongest in a lot of places – would it be better to just remove that block and let it abort normally?
Removed the rescue block and merging.
As a security precaution, this checks that the requested generator is valid before attempting to call it.
/cc @gjtorikian @gregose @andrew