Module: LightIO::Wrap::IOWrapper
- Included in:
- Library::BasicSocket, Library::File, Library::IO, Library::OpenSSL::SSL::SSLSocket, Library::Socket
- Defined in:
- lib/lightio/wrap.rb
Overview
wrapper for ruby io objects
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Object
wrap raw ruby io objects.
Class Method Details
.included(base) ⇒ Object
73 74 75 76 |
# File 'lib/lightio/wrap.rb', line 73 def included(base) base.send :extend, ClassMethods base.send :include, Wrapper end |
Instance Method Details
#initialize(*args) ⇒ Object
wrap raw ruby io objects
28 29 30 |
# File 'lib/lightio/wrap.rb', line 28 def initialize(*args) @obj ||= super end |