The ancestor class of all compression implementations.

Methods
Public Instance methods
compress( text )

Raises NotImplementedError. Subclasses must override this method to implement the desired compression functionality.

    # File lib/net/ssh/transport/compress/compressor.rb, line 42
42:           def compress( text )
43:             raise NotImplementedError,
44:               "subclasses must implement the 'compress' method"
45:           end
configure( options )

Reconfigure the current instance with the given options (which should be a Hash-like). Subclasses may override this method to implement the desired functionality.

    # File lib/net/ssh/transport/compress/compressor.rb, line 37
37:           def configure( options )
38:           end
new( options={} )

Return a new instance just like the current instance, but reconfigured with the given options.

    # File lib/net/ssh/transport/compress/compressor.rb, line 28
28:           def new( options={} )
29:             obj = dup
30:             obj.configure( options )
31:             return obj
32:           end