Sha256: 5abaade6a5bbb3234875de92a6998da9ff58ec74232c56927a8bc6befc80bbcf

Contents?: true

Size: 456 Bytes

Versions: 21

Compression:

Stored size: 456 Bytes

Contents

class Resources::General::WizardPresenter < ResourcePresenter
  protected
  
  def self.steps(*step_list)
    step_list = step_list.first.is_a?(Symbol) ? step_list : step_list.first
    
    step_list.each do |step_name|  
      define_method step_name do |*args|
        options = args.first || {}
        
        product_specific_presenter(
          "#{self.class.name}::Steps::#{step_name.to_s.camelize}Presenter"
        )
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
voluntary-0.7.1 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.7.0 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.6.0 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.5.2 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.5.1 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.5.0 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.4.0 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.3.0 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.2.4 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.2.3 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.2.2 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.2.1 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.2.0 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.1.0 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.1.0.rc4 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.1.0.rc3 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.1.0.rc2 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.1.0.rc1 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.0.3 app/presenters/resources/general/wizard_presenter.rb
voluntary-0.0.2 app/presenters/resources/general/wizard_presenter.rb