Class: Aardi::Site
- Inherits:
-
AbstractBlog
- Object
- AbstractBlog
- Aardi::Site
- Defined in:
- lib/aardi/site.rb
Instance Attribute Summary
Attributes inherited from AbstractBlog
Instance Method Summary collapse
-
#blog ⇒ Object
:reek:FeatureEnvy.
-
#initialize ⇒ Site
constructor
A new instance of Site.
- #render ⇒ Object
Methods inherited from AbstractBlog
Constructor Details
#initialize ⇒ Site
Returns a new instance of Site.
5 6 7 |
# File 'lib/aardi/site.rb', line 5 def initialize initialize_ledger end |
Instance Method Details
#blog ⇒ Object
:reek:FeatureEnvy
10 11 12 13 |
# File 'lib/aardi/site.rb', line 10 def blog aardi_config = Aardi.config @blog ||= Blog.new(aardi_config[:blog_posts_path], aardi_config[:blog_archive_path]) end |
#render ⇒ Object
15 16 17 18 19 |
# File 'lib/aardi/site.rb', line 15 def render super content_hashes.write warn_about_orphans end |