module Lorikeet::Observer
Constants
- DEFAULT_CALLBACK_ID
Public Instance Methods
callback_id()
click to toggle source
# File lib/lorikeet.rb, line 42 def callback_id @callback_id ||= DEFAULT_CALLBACK_ID end
callback_id=(sym)
click to toggle source
# File lib/lorikeet.rb, line 46 def callback_id=(sym) @callback_id = sym end
observe(observable, callback_id = nil)
click to toggle source
# File lib/lorikeet.rb, line 34 def observe(observable, callback_id = nil) if callback_id self.callback_id = callback_id end observable << self end