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.



344
345
346
# File 'lib/origami/filters.rb', line 344

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

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

Encodes the given data.

stream

The data to encode.



352
353
354
# File 'lib/origami/filters.rb', line 352

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