Module: Replay::Router::ClassMethods

Defined in:
lib/replay/router.rb

Instance Method Summary collapse

Instance Method Details

#add_observer(observer, *events) ⇒ Object



15
16
17
# File 'lib/replay/router.rb', line 15

def add_observer(observer, *events)
  instance.add_subscriber(observer)
end

#published(stream, event) ⇒ Object



19
20
21
# File 'lib/replay/router.rb', line 19

def published(stream, event)
  instance.published(stream, event)
end