Class: IRC::Event
- Inherits:
-
Object
- Object
- IRC::Event
- Defined in:
- lib/rhuidean/event.rb
Overview
Contains information about a posted event.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event, *args) ⇒ Event
constructor
Creates a new Event.
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
#args ⇒ Object (readonly)
Returns the value of attribute args.
12 13 14 |
# File 'lib/rhuidean/event.rb', line 12 def args @args end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
12 13 14 |
# File 'lib/rhuidean/event.rb', line 12 def event @event end |