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

> Sorry, i didn't realize that the documentation was not clear enough (indeed).

I'd rather say it's wrong. =)

> apply_all_roles() gives a meta to the instance.

I checked the code it indeed does, so the POD should better reflect this.

But thanks it's much clearer now. =)

Cheers Rolf

( addicted to the Perl Programming Language)

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

Replies are listed 'Best First'.
Re^12: a State machine with Roles - possible? (class or instance)
by mascip (Pilgrim) on Jun 01, 2013 at 11:13 UTC

    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.