Created
May 17, 2009 16:55
-
-
Save stevan/113056 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MyRole; | |
... | |
package MyBaseThing; | |
with MyRole; | |
.... | |
package MyConcreteThing1; | |
extends MyBaseThing; | |
... | |
package MyConcreteThing2; | |
extends MyConcreteThing1; | |
... | |
# then in your class ... | |
package MyApp; | |
has thing => ( | |
is => rw, | |
does => MyRole, | |
handles => MyRole, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment