Sha256: 203ccc00cfbfa736841242cfcf67b779acdfdb823d80a491ad484e28fc02ac72

Contents?: true

Size: 421 Bytes

Versions: 36

Compression:

Stored size: 421 Bytes

Contents

require 'explicit_delegator'

module WoopleTheme
  class QuestionPresenter < ExplicitDelegator
    enforce_definitions :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(@delegate.answers, WoopleTheme::AnswerPresenter)
    end

  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
woople-theme-0.8.1 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.0 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.27 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.26 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.25 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.24 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.23 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.22 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.21 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.20 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.19 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.18 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.17 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.14 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.13 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.12 app/presenters/woople_theme/question_presenter.rb