Sha256: 13500eacf860c2f4f98eb04fb37ba06c97491393131bed3104245361f3bd133c

Contents?: true

Size: 352 Bytes

Versions: 45

Compression:

Stored size: 352 Bytes

Contents

require 'delegate'
require_relative 'content_image'

class ContentItemPresenter < SimpleDelegator
  include ContentImage

  def certification_metadata(&block)
    yield(source.certification_metadata) if source.certification_metadata.present?
  end

  def completed_class
    'completed' if source.completed?
  end

  def source
    __getobj__
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
woople-theme-0.5.8 app/presenters/content_item_presenter.rb
woople-theme-0.5.7 app/presenters/content_item_presenter.rb
woople-theme-0.5.6 app/presenters/content_item_presenter.rb
woople-theme-0.5.5 app/presenters/content_item_presenter.rb
woople-theme-0.5.4 app/presenters/content_item_presenter.rb
woople-theme-0.5.3 app/presenters/content_item_presenter.rb
woople-theme-0.5.2 app/presenters/content_item_presenter.rb
woople-theme-0.5.0.1 app/presenters/content_item_presenter.rb
woople-theme-0.5.0 app/presenters/content_item_presenter.rb
woople-theme-0.4.2 app/presenters/content_item_presenter.rb
woople-theme-0.4.1 app/presenters/content_item_presenter.rb
woople-theme-0.4.0 app/presenters/content_item_presenter.rb
woople-theme-0.3.9 app/presenters/content_item_presenter.rb
woople-theme-0.3.8 app/presenters/content_item_presenter.rb
woople-theme-0.3.7 app/presenters/content_item_presenter.rb
woople-theme-0.3.6 app/presenters/content_item_presenter.rb
woople-theme-0.3.5 app/presenters/content_item_presenter.rb
woople-theme-0.3.04 app/presenters/content_item_presenter.rb
woople-theme-0.3.03 app/presenters/content_item_presenter.rb
woople-theme-0.3.02 app/presenters/content_item_presenter.rb