Module: Spark::CoreExtension::IPSocket::InstanceMethods
- Defined in:
- lib/spark/ext/ip_socket.rb
Instance Method Summary collapse
Instance Method Details
#hostname ⇒ Object
12 13 14 |
# File 'lib/spark/ext/ip_socket.rb', line 12 def hostname addr(true)[2] end |
#numeric_address ⇒ Object
16 17 18 |
# File 'lib/spark/ext/ip_socket.rb', line 16 def numeric_address addr[3] end |
#port ⇒ Object
8 9 10 |
# File 'lib/spark/ext/ip_socket.rb', line 8 def port addr[1] end |