Skip to content

Instantly share code, notes, and snippets.

Last active Jul 24, 2017
What would you like to do?
receiver =
receiver.action_table << :close
receiver.action_table << :player_camera
receiver.register :close, ->() { puts "Closing!" }
receiver.register :player_camera, ->(x : Float64, y : Float64) { puts "Moving camera!" }
receiver.process, some_y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment