Sha256: 431fd2a26c86db6cde8af7d9b135a3c9b18f0ff1743cde4f6674e9c6c93cdddf
Contents?: true
Size: 558 Bytes
Versions: 2
Compression:
Stored size: 558 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jekyll-4.2.1 | lib/jekyll/drops/jekyll_drop.rb |
ngage-0.0.0 | lib/ngage/jekyll/drops/jekyll_drop.rb |