use MooseX::MungeHas 'is_rw'; has foo => (); #### hasrw 'weight'; # read-write hasro 'roattr'; # read-only