Module: LightIO::Library::Base
- Included in:
- Addrinfo, BasicSocket, File, IO, IPSocket, OpenSSL::SSL::SSLSocket, Socket, Socket::Ifaddr, TCPServer, TCPSocket, ThreadGroup, UDPSocket, UNIXServer, UNIXSocket
- Defined in:
- lib/lightio/library/base.rb
Defined Under Namespace
Modules: ClassMethods, MockMethods
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
117
118
119
120
|
# File 'lib/lightio/library/base.rb', line 117
def included(base)
base.send :extend, MockMethods
base.send :extend, ClassMethods
end
|
Instance Method Details
#initialize(*args) ⇒ Object
106
107
108
109
|
# File 'lib/lightio/library/base.rb', line 106
def initialize(*args)
obj = self.class.send(:call_method_from_ancestors, :mock_klass).send(:origin_new, *args)
@obj = obj
end
|