Sha256: c85e276cac40f795f0f33d2bc9f957da604bd5f1a87168c6d4416742af5e213a

Contents?: true

Size: 233 Bytes

Versions: 6

Compression:

Stored size: 233 Bytes

Contents

module Pausable
  def initialize_pause(value = false)
    @paused = value
  end

  def pause
    @paused = true
  end

  def paused?
    @paused
  end

  def resume
    @paused = false
  end

  def running_state
    @paused
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
retest-2.1.0 lib/retest/program/pausable.rb
retest-2.0.1 lib/retest/program/pausable.rb
retest-2.0.0 lib/retest/program/pausable.rb
retest-2.0.0.pre5 lib/retest/program/pausable.rb
retest-2.0.0.pre4 lib/retest/program/pausable.rb
retest-2.0.0.pre3 lib/retest/program/pausable.rb