Class: Discordrb::Events::Negated

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/events/generic.rb

Overview

A negated object, used to not match something in event parameters

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ Negated

Returns a new instance of Negated.



9
10
11
# File 'lib/discordrb/events/generic.rb', line 9

def initialize(object)
  @object = object
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



7
8
9
# File 'lib/discordrb/events/generic.rb', line 7

def object
  @object
end