Class: Aardi::Blog
- Inherits:
-
AbstractBlog
- Object
- AbstractBlog
- Aardi::Blog
- Defined in:
- lib/aardi/blog.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from AbstractBlog
Instance Method Summary collapse
- #<<(post) ⇒ Object
-
#initialize ⇒ Blog
constructor
A new instance of Blog.
- #report_recent ⇒ Object
Methods inherited from AbstractBlog
#metadata, #mtime, #render, #title
Constructor Details
Instance Method Details
#<<(post) ⇒ Object
12 13 14 15 16 |
# File 'lib/aardi/blog.rb', line 12 def <<(post) @posts << post archive << post @tags << post end |
#report_recent ⇒ Object
18 19 20 |
# File 'lib/aardi/blog.rb', line 18 def report_recent recent_posts(:blog_recent_posts).each(&:report_field_summary) end |