Sha256: af8fa42b98c09ef36d14fc6b3d0956b547047d8f68093171c08060e793143e55

Contents?: true

Size: 174 Bytes

Versions: 5

Compression:

Stored size: 174 Bytes

Contents

module ContentImage
  DEFAULT_IMAGE = 'woople-theme/missing.png'

  def image(&block)
    yield(__getobj__.image || DEFAULT_IMAGE) if __getobj__.respond_to? :image
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
woople-theme-0.0.6 app/presenters/content_image.rb
woople-theme-0.0.5 app/presenters/content_image.rb
woople-theme-0.0.4 app/presenters/content_image.rb
woople-theme-0.0.3 app/presenters/content_image.rb
woople-theme-0.0.2 app/presenters/content_image.rb