Class: Cinch::Plugin::ClassMethods::Listener

Inherits:
Struct
  • Object
show all
Defined in:
lib/cinch/plugin.rb

Overview

Represents a Listener as created by #listen_to.

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Symbol) event

The current value of event

Returns:

  • (Symbol)

    the current value of event



88
89
90
# File 'lib/cinch/plugin.rb', line 88

def event
  @event
end

- (Symbol) method

The current value of method

Returns:

  • (Symbol)

    the current value of method



88
89
90
# File 'lib/cinch/plugin.rb', line 88

def method
  @method
end