Skip to content

Commit

Permalink
better Mojo::Base example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 20, 2012
1 parent 0f2cd79 commit c8a9113
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,8 +1,9 @@

2.96 2012-05-18
2.96 2012-05-20
- Added merge method to Mojo::Path.
- Improved documentation.
- Improved tests.
- Fixed small Mojo::URL and Mojo::Path stringification bugs.

2.95 2012-05-10
- Improved documentation.
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Base.pm
Expand Up @@ -120,10 +120,11 @@ Mojo::Base - Minimal base class for Mojo projects
has stripes => 42;
package main;
use Mojo::Base -strict;
my $mew = Cat->new(mouse => 'Mickey');
say $mew->paws;
say $mew->paws(5)->paws;
say $mew->paws(5)->ears(4)->paws;
my $rawr = Tiger->new(stripes => 23);
say $rawr->ears * $rawr->stripes;
Expand Down

0 comments on commit c8a9113

Please sign in to comment.