Last active
October 10, 2017 04:04
-
-
Save kklimuk/dc29bdbbe710006e72c5a5fa3c8915ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Notifier | |
def self.notify(id, message) | |
SlackClient.new.notify(id, prettify(message)) | |
end | |
def self.prettify(message) | |
HTMLCleaner.clean(message.strip) | |
end | |
end | |
Notifier.notify(‘@kirill’, ‘hello, <strong>world</strong>’) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment