class Wizardry::Pages::CheckYourAnswersPage

Attributes

questions[R]
title[R]

Public Class Methods

new(questions: [], title: 'Check your answers') click to toggle source
Calls superclass method
# File lib/wizardry/pages/check_your_answers_page.rb, line 6
def initialize(questions: [], title: 'Check your answers')
  @title     = title
  @questions = questions

  super(pages: [])
end

Public Instance Methods

name() click to toggle source
# File lib/wizardry/pages/check_your_answers_page.rb, line 13
def name
  :check_your_answers
end
question_names() click to toggle source
# File lib/wizardry/pages/check_your_answers_page.rb, line 17
def question_names
  @questions.map(&:name)
end