Method: I2P::BOB::Client#clear

Defined in:
lib/i2p/bob/client.rb

#clearvoid Also known as: clear!

This method returns an undefined value.

Removes the current tunnel. The tunnel must be inactive.

Examples:

bob.clear

Raises:

  • (Error)

    if no tunnel has been selected

  • (Error)

    if the tunnel is still active

Since:

  • 0.1.4



433
434
435
436
437
# File 'lib/i2p/bob/client.rb', line 433

def clear
  send_command(:clear)
  read_response # "cleared"
  self
end