Permalink
Browse files

Enumerations should .gist to just the key, not including the full pac…

…kage name.
  • Loading branch information...
1 parent ff52ee4 commit fb2bb1e50917f1e1bacee0881796c10f39ea4502 @sorear committed Jan 30, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/CORE.setting
View
@@ -1129,10 +1129,7 @@ my role CommonEnum {
method perl() {
defined(self) ?? (self.typename ~ "::" ~ self.key) !! self.typename
}
- method gist() {
- defined(self) ?? (self.typename ~ "::" ~ self.key) !!
- (self.typename ~ "()")
- }
+ method gist() { defined(self) ?? self.key !! (self.typename ~ "()") }
method key() { self.enums._index_to_key($!index) }
method value() { self.enums._index_to_value($!index) }
method kv() { self.key, self.value }

0 comments on commit fb2bb1e

Please sign in to comment.