Sha256: a18cdb51c5b8dec541375d28ffe317137f980667f31ca0c9b6fea7319f7f6197

Contents?: true

Size: 462 Bytes

Versions: 7

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Fusuma
  module Plugin
    module Parsers
      # Generate AppmatcherRecord from libinput_command_input
      class AppmatcherParser < Parser
        DEFAULT_SOURCE = "appmatcher_input"

        # @param record [String]
        # @return [Records::Gesture, nil]
        def parse_record(record)
          line = record.to_s
          Events::Records::AppmatcherRecord.new(name: line)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fusuma-plugin-appmatcher-0.4.0 lib/fusuma/plugin/parsers/appmatcher_parser.rb
fusuma-plugin-appmatcher-0.3.1 lib/fusuma/plugin/parsers/appmatcher_parser.rb
fusuma-plugin-appmatcher-0.3.0 lib/fusuma/plugin/parsers/appmatcher_parser.rb
fusuma-plugin-appmatcher-0.2.3 lib/fusuma/plugin/parsers/appmatcher_parser.rb
fusuma-plugin-appmatcher-0.2.2 lib/fusuma/plugin/parsers/appmatcher_parser.rb
fusuma-plugin-appmatcher-0.2.1 lib/fusuma/plugin/parsers/appmatcher_parser.rb
fusuma-plugin-appmatcher-0.2.0 lib/fusuma/plugin/parsers/appmatcher_parser.rb