Sha256: c3e236deef7d7d021bfca64de75c2924d4523939edf5834d3cd50fe328eb68bb

Contents?: true

Size: 254 Bytes

Versions: 5

Compression:

Stored size: 254 Bytes

Contents

module Spielbash
  class PauseAction < Spielbash::BaseAction
    attr_accessor :length

    def initialize(length, action_context)
      super(action_context)
      @length = length
    end

    def execute(_session)
      sleep(length)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spielbash-0.1.4 lib/spielbash/model/action/pause_action.rb
spielbash-0.1.3 lib/spielbash/model/action/pause_action.rb
spielbash-0.1.2 lib/spielbash/model/action/pause_action.rb
spielbash-0.1.1 lib/spielbash/model/action/pause_action.rb
spielbash-0.1.0 lib/spielbash/model/action/pause_action.rb