Class: CreateFactory
- Inherits:
-
Object
- Object
- CreateFactory
- Defined in:
- lib/create_factory.rb
Class Method Summary collapse
Class Method Details
.call(objects) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/create_factory.rb', line 5 def call(objects) File.open("spec/data.txt", "w+") do |f| objects.each do |object| f.puts(formatte_factory(object)) f.puts("\n") end end end |