Google

# File jabber4r/protocol.rb, line 194

      def add_filter(ref, proc=nil, &block)

        block = proc if proc

        raise "Must supply a block or Proc object to the addFilter method" if block.nil?

        @filters[ref] = block

      end