lib/safubot/evented.rb in safubot-0.0.2 vs lib/safubot/evented.rb in safubot-0.0.3

- old
+ new

@@ -5,10 +5,10 @@ ## # Binds an event handler, which is a Hash of the form: # # { :evid => Symbol, :id => Symbol, :repeat => Boolean, :proc => Proc } # - # See {on}[rdoc-ref:Safubot::Evented#on] and {once}[rdoc-ref:Safubot::Evented#once] for sugar. + # See Evented#on and Evented#once for sugar. def bind(evid, handler) @handlers ||= {} @handlers[evid] ||= {} handler[:evid] = evid handler[:id] ||= @handlers[evid].length