Class: Retter::Page::Article::ViewContext
- Inherits:
-
Base::ViewContext
- Object
- Base::ViewContext
- Retter::Page::Article::ViewContext
- Defined in:
- lib/retter/page/article.rb
Instance Attribute Summary collapse
-
#article ⇒ Object
readonly
Returns the value of attribute article.
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
Instance Method Summary collapse
-
#initialize(entry, article) ⇒ ViewContext
constructor
A new instance of ViewContext.
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
#article ⇒ Object (readonly)
Returns the value of attribute article.
7 8 9 |
# File 'lib/retter/page/article.rb', line 7 def article @article end |
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
7 8 9 |
# File 'lib/retter/page/article.rb', line 7 def entry @entry end |