diff options
Diffstat (limited to 'lib/irc/addressable.ex')
-rw-r--r-- | lib/irc/addressable.ex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/irc/addressable.ex b/lib/irc/addressable.ex new file mode 100644 index 0000000..02993b9 --- /dev/null +++ b/lib/irc/addressable.ex @@ -0,0 +1,12 @@ +defprotocol Irc.Addressable do + @moduledoc """ + Protocol for accessing a `nick`, `user`, `host` and `owner` pid and module from any compatible data structure. + """ + + def nick(t) + def user(t) + def host(t) + def owner(t) + def owner_module(t) + +end |