Class Net::SSH::Transport::Compress::Compressor
In: lib/net/ssh/transport/compress/compressor.rb
Parent: Object

The ancestor class of all compression implementations.

Methods

compress   configure   new  

Public Instance methods

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

[Source]

    # 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

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

[Source]

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

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

[Source]

    # 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

[Validate]