Sha256: b5ebcf71c244ae4b3c2196827adffdd8573f5d7ed7791571c958724e42add7e1

Contents?: true

Size: 474 Bytes

Versions: 6

Compression:

Stored size: 474 Bytes

Contents

# typed: strict
# frozen_string_literal: true

# This Document subclass is used to stand in for gallery indices which do not have a `index.html`
class CheesyGallery::GalleryIndex < Jekyll::Document
  extend T::Sig

  DEFAULT_CONTENT = "This page intentionally left plank.\n"
  # skip reading content, as there is by definition no backing file for this
  sig { params(_opts: T.untyped).returns(String) }
  def read_content(_opts)
    self.content = DEFAULT_CONTENT
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cheesy-gallery-1.1.0 lib/cheesy-gallery/gallery_index.rb
cheesy-gallery-1.0.0 lib/cheesy-gallery/gallery_index.rb
cheesy-gallery-0.8.0 lib/cheesy-gallery/gallery_index.rb
cheesy-gallery-0.7.0 lib/cheesy-gallery/gallery_index.rb
cheesy-gallery-0.6.0 lib/cheesy-gallery/gallery_index.rb
cheesy-gallery-0.5.0 lib/cheesy-gallery/gallery_index.rb