Skip to content

Commit

Permalink
Enumerations should .gist to just the key, not including the full pac…
Browse files Browse the repository at this point in the history
…kage name.
  • Loading branch information
sorear committed Jan 30, 2012
1 parent ff52ee4 commit fb2bb1e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/CORE.setting
Expand Up @@ -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 }
Expand Down

0 comments on commit fb2bb1e

Please sign in to comment.