Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^12: a State machine with Roles - possible? (class or instance)

by mascip (Pilgrim)
on Jun 01, 2013 at 11:13 UTC ( #1036417=note: print w/ replies, xml ) Need Help??


in reply to Re^11: a State machine with Roles - possible? (class or instance)
in thread a State machine with Roles - possible?

Eventually, an example with 2 doors later in this thread. It has 2 doors that can be opened/closed, and locked/unlocked.

The same could be achieved with only 2 Roles (CanBe::Opened, CanBe::Locked), which would each have a state. But still, i'm happy to have learned how to unapply a Role.


Comment on Re^12: a State machine with Roles - possible? (class or instance)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2015-07-06 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls