Class: Retter::Page::Article::ViewContext

Inherits:
Base::ViewContext show all
Defined in:
lib/retter/page/article.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ViewHelper

#article_path, #article_path_by_article, #article_path_by_date_and_id, #article_url, #entry_path, #entry_path_by_date, #entry_path_by_entry, #entry_url, #render_disqus_comment_form

Methods included from Site

#config, #entries, #load, #reset!

Methods included from Configurable

#configurable, #define_configurable_method, #define_instance_shortcut_method

Constructor Details

#initialize(entry, article) ⇒ ViewContext

Returns a new instance of ViewContext.



9
10
11
# File 'lib/retter/page/article.rb', line 9

def initialize(entry, article)
  @entry, @article = entry, article
end

Instance Attribute Details

#articleObject (readonly)

Returns the value of attribute article.



7
8
9
# File 'lib/retter/page/article.rb', line 7

def article
  @article
end

#entryObject (readonly)

Returns the value of attribute entry.



7
8
9
# File 'lib/retter/page/article.rb', line 7

def entry
  @entry
end