Class: IRC::Client::Dispatcher::Event::Callback

Inherits:
Object
  • Object
show all
Defined in:
lib/failirc/client/dispatcher/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, priority = 0) ⇒ Callback

Returns a new instance of Callback.



31
32
33
34
# File 'lib/failirc/client/dispatcher/event.rb', line 31

def initialize (method, priority=0)
    @method   = method
    @priority = priority
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



28
29
30
# File 'lib/failirc/client/dispatcher/event.rb', line 28

def method
  @method
end

#priorityObject

Returns the value of attribute priority.



29
30
31
# File 'lib/failirc/client/dispatcher/event.rb', line 29

def priority
  @priority
end

Instance Method Details

#call(*args) ⇒ Object



36
37
38
# File 'lib/failirc/client/dispatcher/event.rb', line 36

def call (*args)
    return @method.call(*args)
end