Class: Blogit::Archive::Archiveable

Inherits:
Object
  • Object
show all
Defined in:
lib/blogit/archive/archiveable.rb

Overview

This class is for documentation only, to define the Archiveable type

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Archiveable) initialize

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

- (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