Sha256: e6a774de93b551be52ab6cd5630fc7d4d72dbc7a6dc3628b975f243d30b1a46f

Contents?: true

Size: 166 Bytes

Versions: 19

Compression:

Stored size: 166 Bytes

Contents

module Presenter
  def self.for(value)
    klass = "#{value.class.name}Presenter".constantize
    klass.send(:new, value)
  rescue NameError
    value.to_s
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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