Last active
January 19, 2018 23:35
-
-
Save Papierkorb/b1823506941d836eb335a27966671133 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
class Boleite::InputReceiver | |
def process(event : InputEvent) | |
execute_all(@actions, event) unless event.claimed? | |
execute_all(@persistent_actions, event) | |
end | |
private def execute_all(actions, event) | |
actions.each{|act| act.execute(event) if act.interested?(event)} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment