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)
-
- (Object) published_at
Archiveables must respond to :published_at and return a DateTime object.
Instance Method Summary (collapse)
-
- (Archiveable) initialize
constructor
Do not use this.
Constructor Details
- (Archiveable) initialize
Do not use this.
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
- (Object) published_at
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 |