Skip to content

Commit

Permalink
better description for default_message method
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 29, 2014
1 parent aace17e commit 1fb8927
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/JSON/Pointer.pm
Expand Up @@ -12,12 +12,12 @@ sub new { @_ > 1 ? shift->SUPER::new(data => shift) : shift->SUPER::new }

sub _pointer {
my ($self, $contains, $pointer) = @_;
my $data = $self->data;

# DEPRECATED in Tiger Face!
deprecated 'Support for data arguments in Mojo::JSON::Pointer is DEPRECATED'
and (($pointer, $data) = ($_[3], $pointer))
if defined $_[3];
($pointer, my $data)
= defined $_[3] ? ($_[3], $pointer) : ($pointer, $self->data);

return $data unless $pointer =~ s!^/!!;
for my $p ($pointer eq '' ? ($pointer) : (split '/', $pointer)) {
Expand Down
7 changes: 4 additions & 3 deletions lib/Mojo/Message/Response.pm
Expand Up @@ -189,14 +189,14 @@ implements the following new ones.
my $code = $res->code;
$res = $res->code(200);
HTTP response code.
HTTP response status code.
=head2 message
my $msg = $res->message;
$res = $res->message('OK');
HTTP response message.
HTTP response status message.
=head1 METHODS
Expand All @@ -216,7 +216,8 @@ Access response cookies, usually L<Mojo::Cookie::Response> objects.
my $msg = $res->default_message;
my $msg = $res->default_message(418);
Generate default response message for code.
Generate default response message for status code, defaults to using
L</"code">.
=head2 extract_start_line
Expand Down

0 comments on commit 1fb8927

Please sign in to comment.