celluloid/celluloid — pull request #99 by JoeyButler (2012-10-04 04:06:18+00:00)
Title: Refactor FSM#transition

Noticed that this method was pretty gnarly at a flog rating of 60.15. This branch improves the test coverage slightly and greatly improves the form of the method. After applying a few different refactoring techniques I was able to get it down to a rating of 6.

As always you could go a bit further with cleaning it up, but I thought that this was a decent size branch as is.

Feel free to provide constructive criticism, or mention any stylistic preferences!