in reply to Re: Moose: mutualy exclusive bolean attributes.
in thread Moose: mutualy exclusive bolean attributes.
It's worth noting that your method doesn't prevent individual accessors.
has 'status' => ( is => 'rw', isa => 'Status|Undef', handles => { success => sub { ( $_[0]->status() // '' ) eq 'success' }, error => sub { ( $_[0]->status() // '' ) eq 'error' }, pending => sub { ( $_[0]->status() // '' ) eq 'pending' }, }, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Moose: mutualy exclusive bolean attributes.
by chrestomanci (Priest) on Dec 24, 2010 at 10:52 UTC | |
by ikegami (Patriarch) on Dec 24, 2010 at 17:53 UTC | |
by chrestomanci (Priest) on Dec 26, 2010 at 08:12 UTC | |
by ikegami (Patriarch) on Dec 28, 2010 at 22:44 UTC |