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

The ancestor class of all decompression implementations.

Methods

configure   decompress   new  

Public Instance methods

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/decompressor.rb, line 37
37:           def configure( options )
38:           end

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

[Source]

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

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

[Source]

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

[Validate]