Skip to content

Instantly share code, notes, and snippets.

@kklimuk
Created October 10, 2017 04:01
Show Gist options
  • Save kklimuk/d8f6a110ba42e95894aed312a49645b1 to your computer and use it in GitHub Desktop.
Save kklimuk/d8f6a110ba42e95894aed312a49645b1 to your computer and use it in GitHub Desktop.
# a proc, which I will insist on calling a function
notifier = proc { |id, message| SlackClient.new.notify(id, message.strip) }
notifier.call('@kirill', 'hello, world ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment