Sha256: f5e7c1f9631484b482e4d3a22d5843650350d131f4f60701f461332a80999604
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
# encoding: UTF-8 # 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) require "json" JSON.generate(to_h, state) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-3.6.0 | lib/jekyll/drops/jekyll_drop.rb |
jekyll-3.6.0.pre.beta1 | lib/jekyll/drops/jekyll_drop.rb |