Skip to content

Commit

Permalink
fixed collection example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 17, 2013
1 parent c80cfed commit 757f066
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.26 2013-08-18

4.25 2013-08-17
- Added support for calling element methods to Mojo::Collection.
- Added compact method to Mojo::Collection.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Collection.pm
Expand Up @@ -272,7 +272,7 @@ In addition to the methods above, you can also call methods provided by all
elements in the collection directly and create a new collection from the
results, similar to C<pluck>.
my $collection = Mojo::Collection->new(map { "/home/sri/$_.txt" } 1 .. 9);
push @$collection, Mojo::ByteStream->new("/home/sri/$_.txt") for 1 .. 9;
say $collection->slurp->b64_encode('');
=head1 ELEMENTS
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -41,7 +41,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.25';
our $VERSION = '4.26';

sub AUTOLOAD {
my $self = shift;
Expand Down

0 comments on commit 757f066

Please sign in to comment.