Class: Escape::QuestionList
- Inherits:
-
Object
- Object
- Escape::QuestionList
- Includes:
- Enumerable
- Defined in:
- lib/escape/question_list.rb
Class Method Summary collapse
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(*questions) ⇒ QuestionList
constructor
A new instance of QuestionList.
Constructor Details
#initialize(*questions) ⇒ QuestionList
Returns a new instance of QuestionList.
5 6 7 |
# File 'lib/escape/question_list.rb', line 5 def initialize(*questions) @questions = questions || [] end |
Class Method Details
Instance Method Details
#each(&block) ⇒ Object
9 10 11 |
# File 'lib/escape/question_list.rb', line 9 def each(&block) questions.each(&block) end |