You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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…
Serial Numbers
If you’ve got an attribute that needs to be unique, Machinist gives you a serial number for the object being created that you can insert into the attribute.