Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'usage_statements'
With usage statements for Enum.pod
  • Loading branch information
dha committed Oct 4, 2015
2 parents f5f915a + 7a5339f commit 5f093cd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/Type/Enum.pod
Expand Up @@ -13,20 +13,38 @@ C<Pair> (which inherits from Enum).
=head2 method key
Defined as:
multi method key(Enum:D:)
Usage:
ENUM.key
Returns the key part of the Enum.
=head2 method value
Defined as:
multi method value(Enum:D:)
Usage:
ENUM.value
Returns the value part of the Enum.
=head2 method invert
Defined as:
multi method invert(Enum:D:) returns Enum:D
Usage:
ENUM.invert
Returns a new C<Enum> with the original enum's value as the key, and the
original enum's key as value.
Expand Down

0 comments on commit 5f093cd

Please sign in to comment.