Sha256: 025764efe48cabf189c8dcb615a60a89951cebbf3d7896fbc14a20c87228a20b

Contents?: true

Size: 491 Bytes

Versions: 8

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

require_relative './filter'
require_relative '../../libinput_command'

module Fusuma
  module Plugin
    module Filters
      # Filter device log
      class LibinputTimeoutFilter < Filter
        DEFAULT_SOURCE = 'libinput_command_input'

        # @return [TrueClass] when keeping it
        # @return [FalseClass] when discarding it
        def keep?(record)
          record.to_s == LibinputCommand::TIMEOUT_MESSAGE
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fusuma-2.1.0 lib/fusuma/plugin/filters/libinput_timeout_filter.rb
fusuma-2.0.5 lib/fusuma/plugin/filters/libinput_timeout_filter.rb
fusuma-2.0.4 lib/fusuma/plugin/filters/libinput_timeout_filter.rb
fusuma-2.0.3 lib/fusuma/plugin/filters/libinput_timeout_filter.rb
fusuma-2.0.2 lib/fusuma/plugin/filters/libinput_timeout_filter.rb
fusuma-2.0.1 lib/fusuma/plugin/filters/libinput_timeout_filter.rb
fusuma-2.0.0 lib/fusuma/plugin/filters/libinput_timeout_filter.rb
fusuma-2.0.0.pre2 lib/fusuma/plugin/filters/libinput_timeout_filter.rb