Class: CampfireBot::Event::Speaker

Inherits:
EventHandler show all
Defined in:
lib/event.rb

Instance Attribute Summary

Attributes inherited from EventHandler

#kind, #matcher, #method, #plugin

Instance Method Summary collapse

Methods inherited from EventHandler

handles, #initialize, #run

Constructor Details

This class inherits a constructor from CampfireBot::Event::EventHandler

Instance Method Details

#match?(msg) ⇒ Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/event.rb', line 57

def match?(msg)
  msg[:person] == @matcher
end