Sha256: a00ad115d2263329059350a34bbb475e7a629dcb16d0db2942fac6327f1c0695

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

require 'explicit_delegator'

class QuestionPresenter < ExplicitDelegator
  delegate_methods :id,       # Response id used in the form
                   :question, # Text of the question
                   :answers  # Set of options/answers for the question

  def answers
    ThemePresentation.wrap_collection(__getobj__.answers, AnswerPresenter)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
woople-theme-0.3.0 app/presenters/question_presenter.rb