File: drop.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 (14 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Jekyll
  module Drops
    class Drop
      class << self
        # NOTE fixes "warning: instance variable @is_mutable not initialized"
        prepend (Module.new do
          def mutable?
            @is_mutable ||= nil # rubocop:disable Naming/MemoizedInstanceVariableName
          end
        end)
      end
    end
  end
end if defined? Jekyll::Drops::Drop