eventemitter in ruby