Class: Shinmun::PostHandler
- Inherits:
-
Object
- Object
- Shinmun::PostHandler
- Defined in:
- lib/shinmun/post_handler.rb
Instance Method Summary collapse
Instance Method Details
#read(path, data) ⇒ Object
4 5 6 |
# File 'lib/shinmun/post_handler.rb', line 4 def read(path, data) Post.new(:path => path, :src => data) end |
#write(path, post) ⇒ Object
8 9 10 |
# File 'lib/shinmun/post_handler.rb', line 8 def write(path, post) post.dump end |