in reply to Re^2: Role::Tiny: When to use apply_roles_to_object?
in thread Role::Tiny: When to use apply_roles_to_object?
That's how it works, but should be considered an internal implementation detail.
Delegation is probably a better approach for the example I used earlier, but it requires the base class to have prior knowledge of the kinds of "plugin functionality" that will be added to it, so that it knows when to delegate to them. In many cases, the base class won't have prior knowledge.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Role::Tiny: When to use apply_roles_to_object?
by LanX (Saint) on May 04, 2019 at 16:36 UTC |