lib/fusuma/device.rb in fusuma-1.6.0 vs lib/fusuma/device.rb in fusuma-1.7.0
- old
+ new
@@ -1,7 +1,10 @@
# frozen_string_literal: true
+require_relative './multi_logger'
+require_relative './libinput_command.rb'
+
module Fusuma
# detect input device
class Device
attr_reader :available
attr_reader :name
@@ -54,10 +57,10 @@
private
# @return [Array]
def fetch_devices
line_parser = LineParser.new
- Plugin::Inputs::LibinputCommandInput.new.list_devices do |line|
+ LibinputCommand.new.list_devices do |line|
line_parser.push(line)
end
line_parser.generate_devices
end
end