Class: Rubycord::Events::TrueEventHandler
- Inherits:
-
EventHandler
- Object
- EventHandler
- Rubycord::Events::TrueEventHandler
- Defined in:
- lib/rubycord/events/generic.rb
Overview
Event handler that matches all events. Only useful for making an event that has no attributes, such as ReadyEvent.
Direct Known Subclasses
DisconnectEventHandler, HeartbeatEventHandler, ReadyEventHandler
Instance Method Summary collapse
-
#matches?(_) ⇒ true
Always returns true.
Methods inherited from EventHandler
#after_call, #call, #initialize, #match, #matches_all
Constructor Details
This class inherits a constructor from Rubycord::Events::EventHandler
Instance Method Details
#matches?(_) ⇒ true
Always returns true.
113 114 115 |
# File 'lib/rubycord/events/generic.rb', line 113 def matches?(_) true end |