lib/maglev/listeners/broadcaster.rb
# will execute the block provided with only the listeners given
will execute the block provided with only the listeners given
will execute the block provided with only the listeners given
def only(*listeners)
      previous = @listener_names
      @listener_names = Set.new
      listen(*listeners)
      begin
        yield
      ensure
        @listener_names = previous
      end
    end
def only ( * listeners ) previous = @listener_names @listener_names = Set . new listen ( * listeners ) begin yield ensure @listener_names = previous end end
will execute the block provided with only the listeners given
will execute the block provided with only the listeners given
listeners
<not_specific>