Top Level Namespace
Defined Under Namespace
Classes: Object
Constant Summary collapse
Instance Method Summary collapse
-
#a(klass, parameters = {}) ⇒ Object
(also: #an)
Short-cut method for Object::Factory#create_a Also aliased as an, for class names that start with a vowel.
-
#a_number ⇒ Object
Short-cut method for Object::Factory#next_number.
-
#a_saved(klass, parameters = {}) ⇒ Object
Short-cut method for Object::Factory#create_and_save_a.
-
#when_creating_a(klass, options = {}) ⇒ Object
(also: #when_creating_an)
Short-cut method for Object::Factory#when_creating_a.
Instance Method Details
#a(klass, parameters = {}) ⇒ Object Also known as: an
Short-cut method for Object::Factory#create_a Also aliased as an, for class names that start with a vowel.
instance = a Thingy
another_instance = an OtherThingy
203 204 205 |
# File 'lib/object_factory.rb', line 203 def a klass, parameters = {} Object.factory.create_a klass, parameters end |
#a_number ⇒ Object
Short-cut method for Object::Factory#next_number
222 223 224 |
# File 'lib/object_factory.rb', line 222 def a_number Object.factory.next_number end |