Also see Moose::Manual::Delta for more details of, and workarounds
for, noteworthy changes.
+0.89_02
+ * Moose::Meta::Attribute::Native
+ - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
+
0.89_01 Wed Sep 2, 2009
* Moose::Meta::Attribute
- Added the currying syntax for delegation from AttributeHelpers to the
return sub { scalar CORE::keys %{ $reader->( $_[0] ) } };
}
-sub empty : method {
+sub is_empty : method {
my ( $attr, $reader, $writer ) = @_;
return sub { scalar CORE::keys %{ $reader->( $_[0] ) } ? 0 : 1 };
}
handles => {
set_option => 'set',
get_option => 'get',
- has_no_options => 'empty',
+ has_no_options => 'is_empty',
num_options => 'count',
delete_option => 'delete',
pairs => 'kv',
Returns the number of elements in the hash.
-=item B<empty>
+=item B<is_empty>
If the hash is populated, returns false. Otherwise, returns true.
handles => {
'set_option' => 'set',
'get_option' => 'get',
- 'has_no_options' => 'empty',
+ 'has_no_options' => 'is_empty',
'num_options' => 'count',
'clear_options' => 'clear',
'delete_option' => 'delete',
{
'set_option' => 'set',
'get_option' => 'get',
- 'has_no_options' => 'empty',
+ 'has_no_options' => 'is_empty',
'num_options' => 'count',
'clear_options' => 'clear',
'delete_option' => 'delete',