| Class | Callback |
| In: |
lib/callbacks.rb
|
| Parent: | Object |
This class is used to store callbacks inside CallbackList. See the CallbackList class for more detailed explanations.
Create a new callback
| priority: | [Integer] the callback‘s priority. The higher, the sooner it |
will be executed
| ref: | [String] The callback‘s reference |
# File lib/callbacks.rb, line 117
117: def initialize(priority = 0, ref = nil, block = Proc::new {})
118: @priority = priority
119: @ref = ref
120: @block = block
121: end