Method: Ngrok::Tunnel.port

Defined in:
lib/ngrok/tunnel.rb

.portObject



59
60
61
62
# File 'lib/ngrok/tunnel.rb', line 59

def port
  return addr if addr.is_a?(Numeric)
  addr.split(":").last.to_i
end