Class: DNS::Server::Dispatcher::Event::Callback
- Inherits:
-
Object
- Object
- DNS::Server::Dispatcher::Event::Callback
- Defined in:
- lib/faildns/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.
32 33 34 35 |
# File 'lib/faildns/server/dispatcher/event.rb', line 32 def initialize (method, priority=0) @method = method @priority = priority end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
29 30 31 |
# File 'lib/faildns/server/dispatcher/event.rb', line 29 def method @method end |
#priority ⇒ Object
Returns the value of attribute priority.
30 31 32 |
# File 'lib/faildns/server/dispatcher/event.rb', line 30 def priority @priority end |
Instance Method Details
#call(*args) ⇒ Object
37 38 39 |
# File 'lib/faildns/server/dispatcher/event.rb', line 37 def call (*args) return @method.call(*args) end |