Method: CeilingCat::Event#handle
- Defined in:
- lib/ceiling_cat/event.rb
#handle ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ceiling_cat/event.rb', line 13 def handle @room.plugins.each do |plugin| begin response = plugin.new(self).handle break if response.present? rescue => e @room.say("Whoops - there was a problem with #{plugin}: #{e}") end end end |