lib/space/events.rb in space-0.0.6 vs lib/space/events.rb in space-0.0.7
- old
+ new
@@ -18,15 +18,9 @@
def subscribe(observer, *types)
subscriptions << Subscription.new(observer, types)
end
- def flush
- event = events.first
- events.clear
- notify(event, false) if event
- end
-
def notify(event)
# log event
subscriptions.each do |subscription|
subscription.notify(event)
end