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

#eventSymbol

Returns the current value of event.

Returns:

  • (Symbol)

    the current value of event



99
100
101
# File 'lib/cinch/plugin.rb', line 99

def event
  @event
end

#methodSymbol

Returns the current value of method.

Returns:

  • (Symbol)

    the current value of method



99
100
101
# File 'lib/cinch/plugin.rb', line 99

def method
  @method
end