EM handler to handle keyboard input while a test is running.
# File lib/tlspretense/test_harness/input_handler.rb, line 27 def on(char, blk=nil, &block) puts "Warning: setting a keyboard handler for a keystroke that is longer than one char: #{char.inspect}" if char.length != 1 raise ArgumentError, "No block passed in" if blk == nil and block == nil @actions[char] = ( blk ? blk : block) end
Generated with the Darkfish Rdoc Generator 2.