Sha256: f2abe14609c2bb8c7e98a1cd666d4bc1512eefd3792f43a6a889357e1d70d69e
Contents?: true
Size: 629 Bytes
Versions: 4
Compression:
Stored size: 629 Bytes
Contents
require 'explicit_delegator' class AssessmentFormPresenter < ExplicitDelegator enforce_definitions :description, # Short description of assessment :course_path, # url to go to when assessment cancelled :copyright, # copyright notice for assessment :submit_path, # path for assessment form to submit to :questions # set of questions in the assessment def render_copyright yield if copyright.present? end def questions ThemePresentation.wrap_collection(__getobj__.questions, WoopleTheme::QuestionPresenter) end end
Version data entries
4 entries across 4 versions & 1 rubygems