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.10.0 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.9.0 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.19 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.18 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.17 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.16 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.15 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.14 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.13 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.12 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.11 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.10 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.9 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.8 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.7 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.6 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.5 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.4 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.3 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.8.2 app/presenters/woople_theme/question_presenter.rb