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


117
118
119
# File 'lib/cinch/plugin.rb', line 117

def for
  @for
end

#groupObject

Returns the value of attribute group

Returns:

  • (Object)

    the current value of group


117
118
119
# File 'lib/cinch/plugin.rb', line 117

def group
  @group
end

#methodSymbol

Returns the current value of method.

Returns:

  • (Symbol)

    the current value of method


117
118
119
# File 'lib/cinch/plugin.rb', line 117

def method
  @method
end

#typeSymbol

Returns the current value of type.

Returns:

  • (Symbol)

    the current value of type


117
118
119
# File 'lib/cinch/plugin.rb', line 117

def type
  @type
end