in reply to Re^7: a State machine with Roles - possible? (class or instance)
in thread a State machine with Roles - possible?
I don't know how Ruby mixins works, and i'm not sure how Moose/Moo implement it exactly, but i know that it's possible to have each Door be in a different state. Because that is what apply_all_roles_to($object, @roles) is for: it does not apply to the whole class, but only to one object.
I have no idea about the scalability. I think that Salva made a good point: if it gets that complicated, i'll probably want to re-think my design.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: a State machine with Roles - possible? (class or instance)
by LanX (Saint) on May 31, 2013 at 19:40 UTC | |
by mascip (Pilgrim) on Jun 01, 2013 at 10:15 UTC | |
by LanX (Saint) on Jun 01, 2013 at 10:36 UTC | |
by mascip (Pilgrim) on Jun 01, 2013 at 11:13 UTC |