Sha256: 5c5dfd464c8eb8f8ec466e27045d5c5a118395e9c09dc2050042ae57aa0e1f84

Contents?: true

Size: 286 Bytes

Versions: 8

Compression:

Stored size: 286 Bytes

Contents

module Shinmun

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

    def write(path, post)
      post.dump
    end    
  end
  
end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
georgi-shinmun-0.3.10 lib/shinmun/post_handler.rb
georgi-shinmun-0.3.5 lib/shinmun/post_handler.rb
georgi-shinmun-0.3.6 lib/shinmun/post_handler.rb
georgi-shinmun-0.3.7 lib/shinmun/post_handler.rb
georgi-shinmun-0.3.8 lib/shinmun/post_handler.rb
georgi-shinmun-0.3.9 lib/shinmun/post_handler.rb
georgi-shinmun-0.4.1 lib/shinmun/post_handler.rb
georgi-shinmun-0.4 lib/shinmun/post_handler.rb