Skip to content

Commit

Permalink
more documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 5, 2013
1 parent 21c676e commit a49837a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Contributing.pod
Expand Up @@ -166,7 +166,7 @@ feature branches for actual development.
Code has to be run through L<Perl::Tidy> with the included C<.perltidyrc>, and
everything should look like it was written by a single person.

Methods and functions should be as short as possible, no spaghetti code.
Functions and methods should be as short as possible, no spaghetti code.

Comments should be correctly capitalized, and funny if possible, punctuation
is optional if it doesn't increase readability.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1082,7 +1082,7 @@ that they will be picked up automatically by the command line interface?

1;

There are many more useful methods and attributes in L<Mojolicious::Command>
There are many more useful attributes and methods in L<Mojolicious::Command>
that you can use or overload.

$ mojo spy secret
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -375,7 +375,7 @@ L<Mojolicious::Routes/"hide"> to add additional ones.
# Hide "create" method in all controllers
$r->hide('create');

This has already been done for all methods and attributes from
This has already been done for all attributes and methods from
L<Mojolicious::Controller>.

=head2 More restrictive placeholders
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -282,7 +282,7 @@ Contains all available conditions.
my $hidden = $r->hidden;
$r = $r->hidden([qw(attr has new)]);
Controller methods and attributes that are hidden from router, defaults to
Controller attributes and methods that are hidden from router, defaults to
C<attr>, C<has>, C<new> and C<tap>.
=head2 namespaces
Expand Down Expand Up @@ -335,13 +335,13 @@ Match routes with L<Mojolicious::Routes::Match> and dispatch.
$r = $r->hide(qw(foo bar));
Hide controller methods and attributes from router.
Hide controller attributes and methods from router.
=head2 is_hidden
my $success = $r->is_hidden('foo');
Check if controller method or attribute is hidden from router.
Check if controller attribute or method is hidden from router.
=head2 lookup
Expand Down
2 changes: 1 addition & 1 deletion t/mojolicious/app.t
Expand Up @@ -61,7 +61,7 @@ is $t->app->static->file('hello.txt')->slurp,
is $t->app->moniker, 'mojolicious_test', 'right moniker';
is $t->app->secret, $t->app->moniker, 'secret defaults to moniker';

# Hidden controller methods and attributes
# Hidden controller attributes and methods
$t->app->routes->hide('bar');
ok !$t->app->routes->is_hidden('foo'), 'not hidden';
ok $t->app->routes->is_hidden('bar'), 'is hidden';
Expand Down

0 comments on commit a49837a

Please sign in to comment.