Sha256: 03a8e14b119a23aa0c9af9c5a5363b0b31a0d604230cb4b6d02e6ebf41284897

Contents?: true

Size: 238 Bytes

Versions: 19

Compression:

Stored size: 238 Bytes

Contents

require_dependency "renalware/letters"

module Renalware
  module Letters
    class LetterPresenterFactory
      def self.new(letter)
        LetterPresenter.const_get(letter.class.name.demodulize).new(letter)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/letters/letter_presenter_factory.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/letters/letter_presenter_factory.rb