Class: Discordrb::Events::TrueEventHandler
- Inherits:
-
EventHandler
- Object
- EventHandler
- Discordrb::Events::TrueEventHandler
- Defined in:
- lib/discordrb/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 Discordrb::Events::EventHandler
Instance Method Details
#matches?(_) ⇒ true
Always returns true.
114 115 116 |
# File 'lib/discordrb/events/generic.rb', line 114 def matches?(_) true end |