File: support_symlink.rb

package info (click to toggle)
rabbit 3.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,220 kB
  • sloc: ruby: 29,637; lisp: 309; makefile: 43; sh: 7
file content (11 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
module Jekyll
  class Site
    class File < ::File
      class << self
        def symlink?(path)
          super and !exist?(readlink(path))
        end
      end
    end
  end
end