Sha256: ddf94994415c5b3d30b30ce3db220871f92f3898015d6e604048235beea2b814

Contents?: true

Size: 236 Bytes

Versions: 48

Compression:

Stored size: 236 Bytes

Contents

# frozen_string_literal: true

module Dsu
  module Support
    module Presentable
      def presenter
        "Dsu::Presenters::#{self.class.name.demodulize}Presenter".constantize.new(self, options: options)
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
dsu-2.0.7 lib/dsu/support/presentable.rb
dsu-2.0.6 lib/dsu/support/presentable.rb
dsu-2.0.5 lib/dsu/support/presentable.rb
dsu-2.0.4 lib/dsu/support/presentable.rb
dsu-2.0.3 lib/dsu/support/presentable.rb
dsu-2.0.2 lib/dsu/support/presentable.rb
dsu-2.0.1 lib/dsu/support/presentable.rb
dsu-2.0.0.alpha.1 lib/dsu/support/presentable.rb