erikwb/fcm — pull request #1 by gabrielg (2012-07-05 20:38:03+00:00)
Title: FcmAction refactor & other slight changes/cleanups

FcmAction was pretty functional. It took input, and produced output, while
maintaining no real state to speak of, so I removed it and the giant case
statement, and replaced it with simple methods.

* FcmNode attr_accessor changed to attr_reader, because it doesn't look like
those vars are modified from outside the object after initialization.
* Guard clause in FcmNode#add_group
* Cuts out some unnecessary stuff from FcmTransform
* Refactors FcmAction to be a module with methods
* Fixes so the file can be tested outside of the 'lib' dir