Class: Denko::Connection::Base

Inherits:
Object
  • Object
show all
Includes:
Handshake, Observable
Defined in:
lib/denko/connection/base.rb

Direct Known Subclasses

BoardUART, Serial, TCP

Constant Summary

Constants included from Handshake

Handshake::HANDSHAKE_TIMEOUT, Handshake::HANDSHAKE_TRIES

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Handshake

#handshake

Class Method Details

.inherited(subclass) ⇒ Object

We need the methods in FlowControl to wrap subclass methods too.



13
14
15
# File 'lib/denko/connection/base.rb', line 13

def self.inherited(subclass)
  subclass.send(:prepend, FlowControl)
end

Instance Method Details

#stopObject



17
18
19
20
# File 'lib/denko/connection/base.rb', line 17

def stop
  stop_read
  stop_write
end