Or an attribute:
- $meta->add_attribute( 'size' => { is => 'rw', isa => 'Int' } );
+ $meta->add_attribute( 'size' => ( is => 'rw', isa => 'Int' ) );
Obviously, this is much more cumbersome than using Perl syntax or
Moose sugar for defining methods and attributes, but this API allows