Sha256: b2b0b098872dcc89d36dce6433d35109633226a94bd8abcedcfda923f8651a2e
Contents?: true
Size: 307 Bytes
Versions: 142
Compression:
Stored size: 307 Bytes
Contents
# frozen_string_literal: true require_dependency "collection_presenter" module PresenterHelper def present(object, presenter_class = nil, &block) if object.respond_to?(:each) CollectionPresenter.new(object, presenter_class, &block) else presenter_class.new(object) end end end
Version data entries
142 entries across 142 versions & 1 rubygems