Skip to content

Commit

Permalink
Add Enum.hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Feb 28, 2010
1 parent 4d8935e commit f4fdba4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Enum.pm
Expand Up @@ -64,4 +64,8 @@ Return key and value as a 2-element List.
multi method Str() {
"$.key\t$.value";
}

multi method hash() {
{self};
}
}

0 comments on commit f4fdba4

Please sign in to comment.