lib/fusuma/plugin/detectors/keypress_detector.rb in fusuma-plugin-keypress-0.1.0 vs lib/fusuma/plugin/detectors/keypress_detector.rb in fusuma-plugin-keypress-0.1.1
- old
+ new
@@ -5,10 +5,10 @@
module Detectors
# Detect KeypressEvent from KeypressBuffer
class KeypressDetector < Detector
BUFFER_TYPE = 'keypress'
- # @param buffers [Array<Buffer>]
+ # @param buffers [Array<Event>]
# @return [Event] if event is detected
# @return [NilClass] if event is NOT detected
def detect(buffers)
buffer = buffers.find { |b| b.type == BUFFER_TYPE }