Class: IRC::Server::Dispatcher::Event::Callback
- Defined in:
- lib/failirc/server/dispatcher/event.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#priority ⇒ Object
Returns the value of attribute priority.
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(method, priority = 0) ⇒ Callback
constructor
A new instance of Callback.
Constructor Details
#initialize(method, priority = 0) ⇒ Callback
Returns a new instance of Callback.
31 32 33 34 |
# File 'lib/failirc/server/dispatcher/event.rb', line 31 def initialize (method, priority=0) @method = method @priority = priority end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
28 29 30 |
# File 'lib/failirc/server/dispatcher/event.rb', line 28 def method @method end |
#priority ⇒ Object
Returns the value of attribute priority.
29 30 31 |
# File 'lib/failirc/server/dispatcher/event.rb', line 29 def priority @priority end |
Instance Method Details
#call(*args) ⇒ Object
36 37 38 |
# File 'lib/failirc/server/dispatcher/event.rb', line 36 def call (*args) return @method.call(*args) end |