Permalink
Browse files

add method Event.gist

  • Loading branch information...
moritz committed Feb 22, 2013
1 parent 6db8d91 commit de630938a8cde80c6a4d9fdbc7157976bd0855a6
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/Net/IRC/Event.pm
View
@@ -44,6 +44,16 @@ class Net::IRC::Event {
method Str {
$.what ?? ~$.what !! $.raw;
}
+
+ multi method gist(Net::IRC::Event:D:) {
+ join "\n",
+ "Event($.command)",
+ (" where: $.where" if $.where),
+ (" what: $.what" if $.what),
+ (" who: $.who" if $.who),
+ " raw: $.raw",
+ ;
+ }
}
# vim: ft=perl6 expandtab sw=4

0 comments on commit de63093

Please sign in to comment.