Class: LegoEv3::LocalConnection

Inherits:
BaseConnection show all
Defined in:
lib/connection/local.rb

Instance Method Summary collapse

Methods inherited from BaseConnection

#flush, #send

Constructor Details

#initializeLocalConnection

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

#closeObject



8
9
10
11
12
# File 'lib/connection/local.rb', line 8

def close
  @file_handles.values.each do |handle|
    handle.close
  end
end