changes the each do block in the dynamic method to each {} as jruby parser chokes. This is a jruby bug, but this fix is so small I wanted to submit it so it was jruby 9000 (2.2) compatible. With this syntax change it runs in current jruby-head fine
Merge pull request #1 from circleback/jruby-fix

minor syntax change to allow jruby compat