lib/maglev/listeners/broadcaster.rb
# a simply way to register an instance class to listen to events.
# this instance will listen to all events regardless if they are targetted or not
a simply way to register an instance class to listen to events.
this instance will listen to all events regardless if they are targetted or not
a simply way to register an instance class to listen to events . this instance will listen to all events regardless if they are targetted or not
def spy(instance)
      @spies << instance
      begin
        yield
      ensure
        @spies.delete(instance)
      end
    end
def spy ( instance ) @spies << instance begin yield ensure @spies . delete ( instance ) end end
a simply way to register an instance class to listen to events.
a simply way to register an instance class to listen to events .
instance
<not_specific>