module Keybreak

Utilities for key break (control-break) processing

Constants

DO_NOTHING

The block which does nothing.

KEY_CHANGED

The default key break detector

VERSION

Version.

MAJOR.MINOR.PATCH

Public Class Methods

execute_with_controller(&block) click to toggle source

Executes the given block with a Controller instance. Within the block, register your key break handlers and feed keys from your data. Then the handlers will be called for all keys including the last key.

# File lib/keybreak.rb, line 19
def execute_with_controller(&block)
    Controller.new.execute(&block)
end

Private Instance Methods

execute_with_controller(&block) click to toggle source

Executes the given block with a Controller instance. Within the block, register your key break handlers and feed keys from your data. Then the handlers will be called for all keys including the last key.

# File lib/keybreak.rb, line 19
def execute_with_controller(&block)
    Controller.new.execute(&block)
end