Sha256: c1f52746ef1a65f586ed02b2c3a4225b62982d9a4e763aff932b1763805549de

Contents?: true

Size: 706 Bytes

Versions: 4

Compression:

Stored size: 706 Bytes

Contents

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

          # ------------------------------------------------------------------
          # 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

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-assets-2.2.3 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.2.2 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.2.1 lib/jekyll/assets/liquid/tag/defaults.rb
jekyll-assets-2.2.0 lib/jekyll/assets/liquid/tag/defaults.rb