class Jekyll::Publisher
Public Class Methods
new(site)
click to toggle source
# File lib/jekyll/publisher.rb, line 5 def initialize(site) @site = site end
Public Instance Methods
publish?(thing)
click to toggle source
# File lib/jekyll/publisher.rb, line 9 def publish?(thing) can_be_published?(thing) && !hidden_in_the_future?(thing) end
Private Instance Methods
can_be_published?(thing)
click to toggle source
# File lib/jekyll/publisher.rb, line 19 def can_be_published?(thing) thing.data.fetch("published", true) || @site.unpublished end