Skip to content
notahat edited this page Aug 23, 2010 · 7 revisions

A blueprint specifies how to construct an object of a class by providing values for its attributes.

Post.blueprint do
  title { "A Post" }
  body  { "Lorem ipsum..." }
end

More to come…

Clone this wiki locally