Skip to content

Instantly share code, notes, and snippets.

@nothingmuch
Created May 6, 2009 15:55
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 nothingmuch/107570 to your computer and use it in GitHub Desktop.
Save nothingmuch/107570 to your computer and use it in GitHub Desktop.
package Kitten::Friend::Schema::Vase;
use Moose;
use MooseX::AttributeHelpers;
use URI;
use namespace::autoclean;
has pictures => (
metaclass => "Collection::Array",
isa => "ArrayRef[URI]",
is => "ro",
default => sub { [] },
provides => {
push => "add_picture",
},
);
has owner => (
isa => "Kitten::Friend::Schema::Kitten",
is => "ro",
required => 1,
);
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment