Method: Netconf::IOProc#initialize
- Defined in:
- lib/net/netconf/ioproc.rb
#initialize(args_h = {}, &block) ⇒ IOProc
Returns a new instance of IOProc.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/net/netconf/ioproc.rb', line 9 def initialize( args_h = {}, &block ) os_type = args_h[:os_type] || Netconf::DEFAULT_OS_TYPE @args = args_h.clone # an OS specific implementation must exist to support this transport type extend Netconf::const_get( os_type )::IOProc @trans_timeout = @args[:timeout] || Netconf::DEFAULT_TIMEOUT @trans_waitio = @args[:waitio] || Netconf::DEFAULT_WAITIO super( &block ) end |