move EntryFilter class from global namespace into Jekyll module

This commit is contained in:
Christoph Schiessl 2013-12-09 23:06:27 +01:00
parent 4fb6022113
commit 695e5bbc40
1 changed files with 27 additions and 25 deletions

View File

@ -1,5 +1,7 @@
module Jekyll
class EntryFilter class EntryFilter
attr_reader :site attr_reader :site
def initialize(site) def initialize(site)
@site = site @site = site
end end
@ -31,5 +33,5 @@ class EntryFilter
def symlink?(entry) def symlink?(entry)
File.symlink?(entry) && site.safe File.symlink?(entry) && site.safe
end end
end
end end