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