Class: Retter::Preprint::ViewContext

Inherits:
Retter::Page::Base::ViewContext show all
Defined in:
lib/retter/preprint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Retter::Page::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.



8
9
10
# File 'lib/retter/preprint.rb', line 8

def initialize(entry)
  @entry = entry
end

Instance Attribute Details

#entryObject (readonly)

Returns the value of attribute entry.



6
7
8
# File 'lib/retter/preprint.rb', line 6

def entry
  @entry
end