Skip to content

Commit

Permalink
just use overload twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 2, 2014
1 parent 2551b57 commit 4efe43a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@

5.57 2014-11-02
- Deprecated stringify support in Mojo::Collection.
- Deprecated stringication support in Mojo::Collection.
- Deprecated Mojo::Collection::pluck in favor of Mojo::Collection::map.
- Deprecated Mojo::DOM::val.
- Improved map method in Mojo::Collection to be able to call methods.
Expand Down
11 changes: 5 additions & 6 deletions lib/Mojo/Collection.pm
Expand Up @@ -9,13 +9,11 @@ use Mojo::Util 'deprecated';
use Scalar::Util 'blessed';

# DEPRECATED in Tiger Face!
use overload
bool => sub {1},
'""' => sub {
deprecated 'Stringify support in Mojo::Collection is DEPRECATED';
use overload '""' => sub {
deprecated 'Stringification support in Mojo::Collection is DEPRECATED';
shift->join("\n");
},
fallback => 1;
};
use overload bool => sub {1}, fallback => 1;

our @EXPORT_OK = ('c');

Expand Down Expand Up @@ -78,6 +76,7 @@ sub new {
return bless [@_], ref $class || $class;
}

# DEPRECATED in Tiger Face!
sub pluck {
deprecated
'Mojo::Collection::pluck is DEPRECATED in favor of Mojo::Collection::map';
Expand Down

0 comments on commit 4efe43a

Please sign in to comment.