Class: Console::Event::Generic
- Inherits:
 - 
      Object
      
        
- Object
 - Console::Event::Generic
 
 
- Defined in:
 - lib/console/event/generic.rb
 
Instance Method Summary collapse
Instance Method Details
#as_json ⇒ Object
      9 10 11  | 
    
      # File 'lib/console/event/generic.rb', line 9 def as_json(...) to_hash end  | 
  
#emit(*arguments, **options) ⇒ Object
      21 22 23  | 
    
      # File 'lib/console/event/generic.rb', line 21 def emit(*arguments, **) Console.call(*arguments, event: self, **) end  | 
  
#to_json ⇒ Object
      13 14 15  | 
    
      # File 'lib/console/event/generic.rb', line 13 def to_json(...) JSON.generate(as_json, ...) end  | 
  
#to_s ⇒ Object
      17 18 19  | 
    
      # File 'lib/console/event/generic.rb', line 17 def to_s to_json end  |