Sha256: 27b2dce976727706318347300c3f0503ba7bd5eb95b14d516244d6005e6a49c6
Contents?: true
Size: 471 Bytes
Versions: 5
Compression:
Stored size: 471 Bytes
Contents
module Spielbash class CommandAction < Spielbash::BaseAction attr_accessor :command def initialize(command, action_context) super(action_context) @command = command end def execute(session) command.each_char do |c| session.send_key(c) sleep(action_context.typing_delay_s) end session.send_key('C-m') session.wait if action_context.wait sleep(action_context.reading_delay_s) end end end
Version data entries
5 entries across 5 versions & 1 rubygems