Sha256: f821f81bbded08f72c5f495182ae610b14996f547f00991c3e2b6ead47ebb0b5

Contents?: true

Size: 290 Bytes

Versions: 6

Compression:

Stored size: 290 Bytes

Contents

module Screengem
  #
  # Base class for all questions.
  #
  class Question
    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

6 entries across 6 versions & 1 rubygems

Version Path
screengem-0.4.0 lib/screengem/question.rb
screengem-0.3.0 lib/screengem/question.rb
screengem-0.2.0 lib/screengem/question.rb
screengem-0.1.2 lib/screengem/question.rb
screengem-0.1.1 lib/screengem/question.rb
screengem-0.1.0 lib/screengem/question.rb