Sha256: 5499fac51c7fa1f26a6f76e7726efd3beb438c809553b142d550c257c0dbd8e4

Contents?: true

Size: 526 Bytes

Versions: 31

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

module Jekyll
  module Drops
    class JekyllDrop < Liquid::Drop
      class << self
        def global
          @global ||= JekyllDrop.new
        end
      end

      def version
        Jekyll::VERSION
      end

      def environment
        Jekyll.env
      end

      def to_h
        @to_h ||= {
          "version"     => version,
          "environment" => environment,
        }
      end

      def to_json(state = nil)
        JSON.generate(to_h, state)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
jekyll-4.4.1 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.4.0 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.3.4 lib/jekyll/drops/jekyll_drop.rb
jekyll-3.10.0 lib/jekyll/drops/jekyll_drop.rb
jekyll-3.9.5 lib/jekyll/drops/jekyll_drop.rb
jekyll-3.9.4 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.3.3 lib/jekyll/drops/jekyll_drop.rb
jekyll-3.9.3 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.3.2 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.3.1 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.3.0 lib/jekyll/drops/jekyll_drop.rb
jekyll-3.9.2 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.2.2 lib/jekyll/drops/jekyll_drop.rb
jekyll-3.9.1 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.2.0 lib/jekyll/drops/jekyll_drop.rb
jekyll-3.9.0 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.1.1 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.1.0 lib/jekyll/drops/jekyll_drop.rb
jekyll-4.0.1 lib/jekyll/drops/jekyll_drop.rb
jekyll-3.8.7 lib/jekyll/drops/jekyll_drop.rb