diminish7 / rave

A Google Wave robot client framework for Ruby
http://github.com/diminish7/rave
MIT License
62 stars 8 forks source link

Split generic Operation class into specific sub-classes #11

Open bil-bas opened 14 years ago

bil-bas commented 14 years ago

Individual classes should manage all behaviour on Operation::create(), so that they add themselves to the context and make all changes to the local contextual objects so that the robot sees the updated state. This encapsulation reduces replication and thus eliminates a lot of possible mistakes.