Method: HWPing::Launcher#initialize

Defined in:
lib/hwping/launcher.rb

#initialize(device) ⇒ Launcher

Returns a new instance of Launcher.



44
45
46
47
48
49
50
# File 'lib/hwping/launcher.rb', line 44

def initialize(device)
  @device = device
  @handle = @device.open
  @handle.detach_kernel_driver(0) if @handle.kernel_driver_active?(0)
  @x = 0
  @y = 0
end