Class: LightIO::Library::Addrinfo

Inherits:
Object
  • Object
show all
Extended by:
WrapperHelper
Includes:
Wrap::Wrapper
Defined in:
lib/lightio/library/socket.rb

Defined Under Namespace

Modules: WrapperHelper

Class Method Summary collapse

Methods included from Wrap::Wrapper

included, #initialize, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class LightIO::Wrap::Wrapper

Class Method Details

.foreach(*args, &block) ⇒ Object



57
58
59
# File 'lib/lightio/library/socket.rb', line 57

def foreach(*args, &block)
  Addrinfo.getaddrinfo(*args).each(&block)
end