
Improve state machine :enter syntax
Reported by David James | October 6th, 2008 @ 11:53 AM
currently, dm-is-state_machine supports this syntax:
state :green, :enter => Proc.new { ... }
It would make sense to support the following syntax as well:
state :green, :enter => :handle_green
def handle_green
# do stuff ...
end
Thanks to BleSS for the suggestion.
Comments and changes to this ticket
-
Jonathan Stott (namelessjon) December 12th, 2008 @ 01:31 PM
- Assigned user cleared.
- Tag changed from dm-more, state-machine to dm-more, state-machine
- State changed from new to not-applicable
We've decide that the lighthouse will just be used for tracking bugs, not for feature requests.
Please feel free to raise this suggested feature on the mailing list, or work up your own specs and code for consideration.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »