Sha256: fbddd0ed04279478a87b87a99c52c55623f2e87ce75442c3e1d917266534b216

Contents?: true

Size: 546 Bytes

Versions: 7

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

module Jekyll
  module Drops
    class UnifiedPayloadDrop < Drop
      mutable true

      attr_accessor :content, :page, :layout, :paginator,
                    :highlighter_prefix, :highlighter_suffix

      def jekyll
        JekyllDrop.global
      end

      def site
        @site_drop ||= SiteDrop.new(@obj)
      end

      def theme
        @theme_drop ||= ThemeDrop.new(@obj.theme) if @obj.theme
      end

      private

      def fallback_data
        @fallback_data ||= {}
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-4.4.1 lib/jekyll/drops/unified_payload_drop.rb
jekyll-4.4.0 lib/jekyll/drops/unified_payload_drop.rb
jekyll-4.3.4 lib/jekyll/drops/unified_payload_drop.rb
jekyll-4.3.3 lib/jekyll/drops/unified_payload_drop.rb
jekyll-4.3.2 lib/jekyll/drops/unified_payload_drop.rb
jekyll-4.3.1 lib/jekyll/drops/unified_payload_drop.rb
jekyll-4.3.0 lib/jekyll/drops/unified_payload_drop.rb