Class Callback
In: lib/callbacks.rb
Parent: Object
CallbackList Callback TopLevel

This class is used to store callbacks inside CallbackList. See the CallbackList class for more detailed explanations.

Methods

new  

Attributes

block  [R]  The Callback’s block to execute
priority  [R]  The Callback’s priority
ref  [R]  The Callback’s reference, using for deleting purposes

Public Class methods

Create a new callback

priority:[Integer] the callback’s priority. The higher, the sooner it

will be executed

ref:[String] The callback’s reference

[Source]

     # File lib/callbacks.rb, line 111
111:   def initialize(priority = 0, ref = nil, block = Proc::new {})
112:     @priority = priority
113:     @ref = ref
114:     @block = block
115:   end

[Validate]