Sha256: 70756f4da26d06b41a124fcf799a455c13d3954df28a3438f2a5b88332cf3a74

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

module Shinmun

  class PostHandler
    def read(name, data)
      Post.new(:filename => name, :src => data)
    end

    def write(post)
      post.dump
    end    
  end
  
end

GitStore::Handler['md'] = Shinmun::PostHandler.new

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
georgi-shinmun-0.3.1 lib/shinmun/post_handler.rb
georgi-shinmun-0.3.2 lib/shinmun/post_handler.rb
georgi-shinmun-0.3.3 lib/shinmun/post_handler.rb