Sha256: e1d79ace7576ce7f89470a73c481f2a64156e722d0fce82c69a30d12cf5a7580

Contents?: true

Size: 422 Bytes

Versions: 42

Compression:

Stored size: 422 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(__getobj__.answers, WoopleTheme::AnswerPresenter)
    end

  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
woople-theme-0.6.11 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.10 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.9 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.8 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.7 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.6 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.5 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.4 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.3 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.2 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6.1 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.6 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.5.17 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.5.16 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.5.15 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.5.14 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.5.13 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.5.12 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.5.11 app/presenters/woople_theme/question_presenter.rb
woople-theme-0.5.10 app/presenters/woople_theme/question_presenter.rb