# File temp/parsers/baseparser.rb, line 126 def add_listener( listener ) if !defined?(@listeners) or !@listeners @listeners = [] instance_eval "alias :_old_pull :pull\ndef pull\nevent = _old_pull\n@listeners.each do |listener|\nlistener.receive event\nend\nevent\nend\n" end @listeners << listener end