lib/maglev/listeners/broadcaster.rb
# ignores the given listeners. If a block is provided (recommended) then it will only
# ignore the listenres for the duration of the block execution.
ignores the given listeners. If a block is provided (recommended) then it will only
ignore the listenres for the duration of the block execution.
ignores the given listeners . If a block is provided ( recommended ) then it will only ignore the listenres for the duration of the block execution .
def ignore(*listeners)
      listener_names = listeners.map(&:to_s) & self.listener_names.to_a
      self.listener_names.subtract(listener_names)
      if block_given?
        begin
          yield
        ensure
          self.listener_names.merge(listener_names)
        end
      end
    end
def ignore ( * listeners ) listener_names = listeners . map ( & :to_s ) & self . listener_names . to_a self . listener_names . subtract ( listener_names ) if block_given? begin yield ensure self . listener_names . merge ( listener_names ) end end end
ignores the given listeners.
ignores the given listeners .
# if a block is given we will only listen until the block is called
listeners
<not_specific>