Module: Spark::CoreExtension::IPSocket::InstanceMethods

Defined in:
lib/spark/ext/ip_socket.rb

Instance Method Summary collapse

Instance Method Details

#hostnameObject



12
13
14
# File 'lib/spark/ext/ip_socket.rb', line 12

def hostname
  addr(true)[2]
end

#numeric_addressObject



16
17
18
# File 'lib/spark/ext/ip_socket.rb', line 16

def numeric_address
  addr[3]
end

#portObject



8
9
10
# File 'lib/spark/ext/ip_socket.rb', line 8

def port
  addr[1]
end