Class: IRC::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/rhuidean/event.rb

Overview

Contains information about a posted event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event, *args) ⇒ Event

Creates a new Event.


event

event name as a Symbol

args

list of arguments to pass to handler

returns

self



21
22
23
24
# File 'lib/rhuidean/event.rb', line 21

def initialize(event, *args)
    @event = event
    @args  = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



12
13
14
# File 'lib/rhuidean/event.rb', line 12

def args
  @args
end

#eventObject (readonly)

Returns the value of attribute event.



12
13
14
# File 'lib/rhuidean/event.rb', line 12

def event
  @event
end