Created
April 2, 2011 16:59
-
-
Save 0branch/899644 to your computer and use it in GitHub Desktop.
Object class, first draft.
This file contains 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 Object; | |
use Moose; | |
has 'name' => ( | |
isa => 'Str', | |
is => 'rw', | |
required => 1, | |
); | |
has 'description' => ( | |
isa => 'Str', | |
is => 'rw', | |
default => sub { | |
"You see nothing special about the " . shift->name; | |
}, | |
); | |
no Moose; | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment