Permalink
Browse files

fixed param documentation

  • Loading branch information...
1 parent eab78ff commit 37da98434cbf90b187ce766a70e9bd5f4396973a @kraih committed Mar 8, 2012
Showing with 8 additions and 5 deletions.
  1. +1 −1 Makefile.PL
  2. +4 −3 lib/Mojo/Message.pm
  3. +3 −1 lib/Mojo/Message/Request.pm
View
@@ -22,7 +22,7 @@ WriteMakefile(
repository => 'http://github.com/kraih/mojo',
bugtracker => 'http://github.com/kraih/mojo/issues'
},
- no_index => {directory => [qw/t/]}
+ no_index => {directory => ['t']}
},
EXE_FILES => ['script/hypnotoad', 'script/mojo', 'script/morbo'],
test => {TESTS => 't/*.t t/*/*.t'}
View
@@ -789,10 +789,11 @@ EXPERIMENTAL and might change without warning!
=head2 C<param>
- my $param = $message->param('foo');
- my @params = $message->param('foo');
+ my @names = $message->param;
+ my $foo = $message->param('foo');
+ my @foo = $message->param('foo');
-Access C<GET> and C<POST> parameters.
+Access C<POST> parameters.
=head2 C<parse>
@@ -430,7 +430,9 @@ Check C<X-Requested-With> header for C<XMLHttpRequest> value.
=head2 C<param>
- my $param = $req->param('foo');
+ my @names = $req->param;
+ my $foo = $req->param('foo');
+ my @foo = $req->param('foo');
Access C<GET> and C<POST> parameters.

0 comments on commit 37da984

Please sign in to comment.