Sha256: f89d7e2de9ef0dac8c9b5494bccdb368e9c3f7df9b82246e56c6f64148919ecb

Contents?: true

Size: 707 Bytes

Versions: 8

Compression:

Stored size: 707 Bytes

Contents

# Frozen-string-literal: true
# Copyright: 2012 - 2016 - MIT License
# Encoding: utf-8

module Jekyll
  module Assets
    module Liquid
      class Tag
        module Defaults
          require_relative "defaults/image"
          require_relative "defaults/sha"

          # --
          # TODO: In 3.0 env needs to be enforced, right now it's not
          #   because it's maintain 2.0 API.
          # --
          module_function
          def set_defaults_for!(tag, args, asset, env = nil)
            constants.select { |const| const_get(const).for?(tag) }.each do |const|
              const_get(const).new(args, asset, env).set!
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jekyll-assets-2.4.0 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.3.2 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.3.0 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.2.8 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.2.7 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.2.6 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.2.5 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.2.4 lib/jekyll/assets/liquid/tag/defaults.rb