Module: Hallon::Observable::Search
- Included in:
- Search
- Defined in:
- lib/hallon/observable/search.rb
Overview
Callbacks related to Search objects.
Class Method Summary collapse
-
.extended(other) ⇒ Object
Includes Hallon::Observable for you.
Instance Method Summary collapse
-
#initialize_callbacks ⇒ Method
protected
Load callback.
-
#load_callback(pointer, userdata) { ... } ⇒ Object
protected
This callback is fired when the Image object is fully loaded.
Class Method Details
.extended(other) ⇒ Object
Includes Hallon::Observable for you.
5 6 7 |
# File 'lib/hallon/observable/search.rb', line 5 def self.extended(other) other.send(:include, Hallon::Observable) end |
Instance Method Details
#initialize_callbacks ⇒ Method (protected)
Returns load callback.
12 13 14 |
# File 'lib/hallon/observable/search.rb', line 12 def initialize_callbacks callback_for(:load) end |
#load_callback(pointer, userdata) { ... } ⇒ Object (protected)
This callback is fired when the Image object is fully loaded.
24 25 26 |
# File 'lib/hallon/observable/search.rb', line 24 def load_callback(pointer, userdata) trigger(pointer, :load) end |