Method: Jekyll::RelatedPosts#initialize

Defined in:
lib/ngage/jekyll/related_posts.rb

#initialize(post) ⇒ RelatedPosts

Returns a new instance of RelatedPosts.



11
12
13
14
15
# File 'lib/ngage/jekyll/related_posts.rb', line 11

def initialize(post)
  @post = post
  @site = post.site
  Jekyll::External.require_with_graceful_fail("classifier-reborn") if site.lsi
end