Skip to content

Commit

Permalink
move documentation about calling as methods into its own section
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Sep 27, 2014
1 parent 486ea7a commit 3c0a09b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions lib/Role/Inspector.pm
Expand Up @@ -427,10 +427,7 @@ metaobject
=back
This function may be exported, but is not exported by default. If you do
not wish to export it, you may call it as a class method:
Role::Inspector->get_role_info($package_name)
This function may be exported, but is not exported by default.
=item C<< does_role($thing, $role) >>
Expand All @@ -441,8 +438,19 @@ This should mostly give the same answers as C<< $thing->DOES($role) >>,
but may be slightly more reliable in some cross-implementation (i.e.
Moose roles consuming Moo roles) cases.
This function may be exported, but is not exported by default.
=back
=head2 Methods
If you do not wish to export the functions provided by Role::Inspector,
you may call them as a class methods:
my $info = Role::Inspector->get_role_info($package_name);
$thing->blah() if Role::Inspector->does_role($thing, $role);
=head2 Extending Role::Inspector
=over
Expand Down

0 comments on commit 3c0a09b

Please sign in to comment.