Class: Rubycord::Events::TrueEventHandler

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

Instance Method Summary collapse

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.

Returns:

  • (true)


113
114
115
# File 'lib/rubycord/events/generic.rb', line 113

def matches?(_)
  true
end