Class: Cinch::Plugin::ClassMethods::Hook

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

Overview

Represents a Hook as created by #hook.

Instance Attribute Summary collapse

Instance Attribute Details

#forArray<Symbol>

Returns the current value of for.

Returns:

  • (Array<Symbol>)

    the current value of for



119
120
121
# File 'lib/cinch/plugin.rb', line 119

def for
  @for
end

#groupObject

Returns the value of attribute group

Returns:

  • (Object)

    the current value of group



119
120
121
# File 'lib/cinch/plugin.rb', line 119

def group
  @group
end

#methodSymbol

Returns the current value of method.

Returns:

  • (Symbol)

    the current value of method



119
120
121
# File 'lib/cinch/plugin.rb', line 119

def method
  @method
end

#typeSymbol

Returns the current value of type.

Returns:

  • (Symbol)

    the current value of type



119
120
121
# File 'lib/cinch/plugin.rb', line 119

def type
  @type
end