Skip to content

Instantly share code, notes, and snippets.

@0branch
Created April 2, 2011 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0branch/899652 to your computer and use it in GitHub Desktop.
Save 0branch/899652 to your computer and use it in GitHub Desktop.
Entity.pm (redraft of Object.pm)
package Entity;
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