Sha256: 69bbd9ce25a6b9ca7ce189ca603504c696e418a5714b7886acc3877e0f3260b4

Contents?: true

Size: 319 Bytes

Versions: 17

Compression:

Stored size: 319 Bytes

Contents

module Screengem
  #
  # Base class for all questions.
  #
  class Question
    include RSpec::Matchers

    include Screengem::Configurable
    include Screengem::Dampenable
    include Screengem::Executable

    dampen_scope :questions

    def answer
      execute.tap { sleep(seconds_to_dampen) }
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
screengem-0.16.0 lib/screengem/question.rb
screengem-0.15.0 lib/screengem/question.rb
screengem-0.14.0 lib/screengem/question.rb
screengem-0.13.0 lib/screengem/question.rb
screengem-0.12.0 lib/screengem/question.rb
screengem-0.11.0 lib/screengem/question.rb
screengem-0.10.1 lib/screengem/question.rb
screengem-0.10.0 lib/screengem/question.rb
screengem-0.9.1 lib/screengem/question.rb
screengem-0.9.0 lib/screengem/question.rb
screengem-0.8.1 lib/screengem/question.rb
screengem-0.8.0 lib/screengem/question.rb
screengem-0.7.3 lib/screengem/question.rb
screengem-0.7.2 lib/screengem/question.rb
screengem-0.7.1 lib/screengem/question.rb
screengem-0.6.0 lib/screengem/question.rb
screengem-0.5.0 lib/screengem/question.rb