Class: LegoEv3::LocalConnection
- Inherits:
-
BaseConnection
- Object
- BaseConnection
- LegoEv3::LocalConnection
- Defined in:
- lib/connection/local.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize ⇒ LocalConnection
constructor
A new instance of LocalConnection.
Methods inherited from BaseConnection
Constructor Details
#initialize ⇒ LocalConnection
Returns a new instance of LocalConnection.
3 4 5 6 |
# File 'lib/connection/local.rb', line 3 def initialize super() @file_handles = {} end |
Instance Method Details
#close ⇒ Object
8 9 10 11 12 |
# File 'lib/connection/local.rb', line 8 def close @file_handles.values.each do |handle| handle.close end end |