Sha256: 8b392a9edb8fdcff775ed6b43791808060dd510817a819a6b682afd9e02fd805

Contents?: true

Size: 546 Bytes

Versions: 13

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

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

      def version
        Bridgetown::VERSION
      end

      def environment
        Bridgetown.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

13 entries across 13 versions & 1 rubygems

Version Path
bridgetown-core-0.12.1 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.12.0 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.11.2 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.11.1 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.11.0 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.10.2 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.10.1 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.10.0 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.9.0 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.8.1 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.8.0 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.7.2 lib/bridgetown-core/drops/bridgetown_drop.rb
bridgetown-core-0.7.1 lib/bridgetown-core/drops/bridgetown_drop.rb