Class: Discordrb::Events::TrueEventHandler

Inherits:
EventHandler show all
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.

Instance Method Summary collapse

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.

Returns:

  • (true)


114
115
116
# File 'lib/discordrb/events/generic.rb', line 114

def matches?(_)
  true
end