Top Level Namespace
Defined Under Namespace
Classes: Cobble
Instance Method Summary collapse
-
#Cobble(name, *args, &block) ⇒ Object
Shortcut for Cobble.create(name, *args, &block).
-
#Factory(name, *args, &block) ⇒ Object
Shortcut for Cobble, really only used to ease transition from FactoryGirl.
Instance Method Details
#Cobble(name, *args, &block) ⇒ Object
Shortcut for Cobble.create(name, *args, &block)
9 10 11 |
# File 'lib/cobble.rb', line 9 def Cobble(name, *args, &block) Cobble.create(name, *args, &block) end |
#Factory(name, *args, &block) ⇒ Object
Shortcut for Cobble, really only used to ease transition from FactoryGirl
14 15 16 17 |
# File 'lib/cobble.rb', line 14 def Factory(name, *args, &block) puts "*** WARNING *** You should migrate over to using the proper Cobble methods as this won't be here forever!" Cobble.create(name, *args, &block) end |