Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better descriptions for methods in Mojo::Home
  • Loading branch information
kraih committed Feb 27, 2012
1 parent e526fc7 commit 711b0e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

2.55 2012-02-27 00:00:00
- Improved documentation.

2.54 2012-02-27 00:00:00
- Deprecated class and method stash values in favor of controller and
action.
Expand Down
16 changes: 8 additions & 8 deletions lib/Mojo/Home.pm
Expand Up @@ -167,21 +167,21 @@ Construct a new L<Mojo::Home> object.
$home = $home->detect;
$home = $home->detect('My::App');
Detect home directory from value of C<MOJO_HOME> environment variable or
application class.
Detect home directory from the value of the C<MOJO_HOME> environment variable
or application class.
=head2 C<lib_dir>
my $path = $home->lib_dir;
Path to C<lib> directory.
Path to C<lib> directory of application.
=head2 C<list_files>
my $files = $home->list_files;
my $files = $home->list_files('foo/bar');
List all files in directory and subdirectories recursively.
Portably list all files in directory and subdirectories recursively.
=head2 C<mojo_lib_dir>
Expand All @@ -193,25 +193,25 @@ Path to C<lib> directory in which L<Mojolicious> is installed.
$home = $home->parse('/foo/bar');
Parse path.
Parse home directory.
=head2 C<rel_dir>
my $path = $home->rel_dir('foo/bar');
Generate absolute path for relative directory.
Portably generate an absolute path from a relative UNIX style path.
=head2 C<rel_file>
my $path = $home->rel_file('foo/bar.html');
Generate absolute path for relative file.
Portably generate an absolute path from a relative UNIX style path.
=head2 C<slurp_rel_file>
my $string = $home->slurp_rel_file('foo/bar.html');
Read all file data at once.
Portably read all file data at once.
=head2 C<to_string>
Expand Down

0 comments on commit 711b0e6

Please sign in to comment.