Module: Flirt::Listener

Defined in:
lib/flirt/listener.rb

Instance Method Summary collapse

Instance Method Details

#subscribe_to(event_name, opts = {}) ⇒ Object



38
39
40
# File 'lib/flirt/listener.rb', line 38

def subscribe_to(event_name, opts = {})
    Flirt.subscribe self, event_name, opts
end

#unsubscribe_from(event_name, opts = {}) ⇒ Object



43
44
45
# File 'lib/flirt/listener.rb', line 43

def unsubscribe_from(event_name, opts = {})
    Flirt.unsubscribe self, event_name, opts
end