use MooseX::Declare; class Foo { has 'one' => (is => 'rw', isa => 'Str'); has 'two' => (is => 'rw', isa => 'Str'); };