Class: Discordrb::Events::Negated
- Inherits:
- 
      Object
      
        - Object
- Discordrb::Events::Negated
 
- Defined in:
- lib/discordrb/events/generic.rb
Overview
A negated object, used to not match something in event parameters.
Instance Attribute Summary collapse
- 
  
    
      #object  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute object. 
Instance Method Summary collapse
- 
  
    
      #initialize(object)  ⇒ Negated 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Negated. 
Constructor Details
#initialize(object) ⇒ Negated
Returns a new instance of Negated.
| 10 11 12 | # File 'lib/discordrb/events/generic.rb', line 10 def initialize(object) @object = object end | 
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
| 8 9 10 | # File 'lib/discordrb/events/generic.rb', line 8 def object @object end |