Class: CampfireBot::Event::Message

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)


65
66
67
# File 'lib/event.rb', line 65

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