alexpeachey / end_state

A State Machine implementation
MIT License
9 stars 5 forks source link

Add early 'return super' to method_missing. #7

Closed brianvh closed 10 years ago

brianvh commented 10 years ago

We only want to process {state} and {event} method calls that end with either '?' or '!'. If we don't see that, we immediately super out, so the wrapped object can handle the method. Includes a unit spec to verify the correct behavior.