Sha256: e9ff030610f193c28c8e5467a90f3ae788870fe33710507a285675d4de14ef4d

Contents?: true

Size: 468 Bytes

Versions: 4

Compression:

Stored size: 468 Bytes

Contents

module Blogit
  module Archive
    
    # This class is for documentation only, to define the Archiveable type
    class Archiveable
      
      # Archiveables must respond to :published_at and return a DateTime object.
      attr_accessor :published_at
        
      # Do not use this.
      #
      # Raises an exception.
      def initialize
        raise "Can't initialize an Archiveable. Class is for documentation only."
      end
      
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blogit-1.1.2 lib/blogit/archive/archiveable.rb
blogit-1.1.1 lib/blogit/archive/archiveable.rb
blogit-1.1.0 lib/blogit/archive/archiveable.rb
blogit-1.0.0 lib/blogit/archive/archiveable.rb