Class: Blogit::Archive::Archiveable
- Inherits:
-
Object
- Object
- Blogit::Archive::Archiveable
- Defined in:
- lib/blogit/archive/archiveable.rb
Overview
This class is for documentation only, to define the Archiveable type
Instance Attribute Summary collapse
-
#published_at ⇒ Object
Archiveables must respond to :published_at and return a DateTime object.
Instance Method Summary collapse
-
#initialize ⇒ Archiveable
constructor
Do not use this.
Constructor Details
#initialize ⇒ Archiveable
Do not use this.
Raises an exception.
13 14 15 |
# File 'lib/blogit/archive/archiveable.rb', line 13 def initialize raise "Can't initialize an Archiveable. Class is for documentation only." end |
Instance Attribute Details
#published_at ⇒ Object
Archiveables must respond to :published_at and return a DateTime object.
8 9 10 |
# File 'lib/blogit/archive/archiveable.rb', line 8 def published_at @published_at end |