Module: Twterm::Publisher

Instance Method Summary collapse

Methods included from Utils

check_type

Instance Method Details

#publish(event) ⇒ Object



9
10
11
12
13
14
# File 'lib/twterm/publisher.rb', line 9

def publish(event)
  check_type Event::AbstractEvent, event

  EventDispatcher.instance.dispatch(event)
  event
end