File: layouts.rb

package info (click to toggle)
ruby-jekyll-asciidoc 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,536 kB
  • sloc: ruby: 1,802; sh: 36; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
module Jekyll
  class Renderer
    # NOTE fixes "warning: instance variable @layouts not initialized"
    prepend (Module.new do
      def layouts
        @layouts = nil unless defined? @layouts
        super
      end
    end)
  end
end if Jekyll::Renderer.method_defined? :layouts