Class: Jekyll::Publisher
- Inherits:
-
Object
- Object
- Jekyll::Publisher
- Defined in:
- lib/jekyll/publisher.rb
Instance Method Summary collapse
-
#initialize(site) ⇒ Publisher
constructor
A new instance of Publisher.
- #publish?(thing) ⇒ Boolean
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
7 8 9 |
# File 'lib/jekyll/publisher.rb', line 7 def publish?(thing) can_be_published?(thing) && !hidden_in_the_future?(thing) end |