Method: Warren::MessageFilter.pack

Defined in:
lib/warren/message_filter.rb

.pack(msg) ⇒ Object

Runs the raw message through all the filters and returns the filtered version



54
55
56
57
58
59
60
# File 'lib/warren/message_filter.rb', line 54

def self.pack msg
  @@filters.reverse.each do |f|
    # puts "Packing with #{f}"
    msg = f.send(:pack, msg)
  end
  msg
end