Class: Gio::InetAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/gio2/inet-address.rb

Class Method Summary collapse

Class Method Details

.any(family) ⇒ Object



20
21
22
23
24
# File 'lib/gio2/inet-address.rb', line 20

def any(family)
  address = allocate
  address.__send__(:initialize_new_any, family)
  address
end

.loopback(family) ⇒ Object



26
27
28
29
30
# File 'lib/gio2/inet-address.rb', line 26

def loopback(family)
  address = allocate
  address.__send__(:initialize_new_loopback, family)
  address
end