Module: Origami::Filter::ClassMethods

Defined in:
lib/origami/filters.rb

Instance Method Summary collapse

Instance Method Details

#decode(stream, params = {}) ⇒ Object

Decodes the given data.

stream

The data to decode.


342
343
344
# File 'lib/origami/filters.rb', line 342

def decode(stream, params = {})
    self.new(params).decode(stream)
end

#encode(stream, params = {}) ⇒ Object

Encodes the given data.

stream

The data to encode.


350
351
352
# File 'lib/origami/filters.rb', line 350

def encode(stream, params = {})
    self.new(params).encode(stream)
end