我在 DataMapper 文档中看到了以下代码,Serial
, String
.. 全部对齐,我可以在 Vim 中做同样的事情吗?
class Post
include DataMapper::Resource
property :id, Serial # An auto-increment integer key
property :title, String # A varchar type string, for short strings
property :body, Text # A text block, for longer string data.
property :created_at, DateTime # A DateTime, for any date you might like.
end