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, #match, #matches_all

Instance Method Details

#matches?(_) ⇒ true

Always returns true.

Returns:

  • (true)


116
117
118
# File 'lib/discordrb/events/generic.rb', line 116

def matches?(_)
  true
end