Class: Jekyll::Publisher

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/publisher.rb

Instance Method Summary collapse

Constructor Details

#initialize(site) ⇒ Publisher

Returns a new instance of Publisher.



3
4
5
# File 'lib/jekyll/publisher.rb', line 3

def initialize(site)
  @site = site
end

Instance Method Details

#publish?(thing) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/jekyll/publisher.rb', line 7

def publish?(thing)
  can_be_published?(thing) && !hidden_in_the_future?(thing)
end