# -*- encoding: utf-8 -*- require 'coolio' module Bluepill module Event extend self def attach(watcher) self.event_loop.attach watcher end def run self.event_loop.run end def stop self.event_loop.stop end def event_loop @event_loop ||= Coolio::Loop.new end end end