This class is used to store callbacks inside CallbackList. See the CallbackList class for more detailed explanations.
The Callback's block to execute
The Callback's priority
The Callback's reference, using for deleting purposes
Create a new callback
the callback's priority. The higher, the sooner it
will be executed
The callback's reference
# File lib/xmpp4r/callbacks.rb, line 123 def initialize(priority = 0, ref = nil, block = Proc.new {}) @priority = priority @ref = ref @block = block end
# File lib/xmpp4r/callbacks.rb, line 129 def to_s "#<#{[self.class, priority, ref].compact * " "}>" end