Sha256: 0da96a3e237f687574a11dd2aa6cc22eedbbba875e0f36401add7a083b082e19

Contents?: true

Size: 340 Bytes

Versions: 3

Compression:

Stored size: 340 Bytes

Contents

# => http://microformats.org/wiki/hatom
require 'microformat'
require 'mofo/hcard'
require 'mofo/rel_tag'

class HEntry < Microformat
  one :entry_title!, :entry_summary, :updated, :published,
      :author => HCard, :tags => RelTag 

  many :entry_content

  after_find do
    @updated = @published unless @updated if @published
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mofo-0.2.3 ./lib/mofo/hentry.rb
mofo-0.2.4 ./lib/mofo/hentry.rb
mofo-0.2.5 ./lib/mofo/hentry.rb