Class: Cfoo::Factory
Instance Method Summary collapse
- #cfoo ⇒ Object
-
#initialize(stdout, stderr) ⇒ Factory
constructor
A new instance of Factory.
Constructor Details
#initialize(stdout, stderr) ⇒ Factory
Returns a new instance of Factory.
11 12 13 |
# File 'lib/cfoo/factory.rb', line 11 def initialize(stdout, stderr) @stdout, @stderr = stdout, stderr end |
Instance Method Details
#cfoo ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/cfoo/factory.rb', line 15 def cfoo yaml_parser = YamlParser.new file_system = FileSystem.new(".", yaml_parser) project = Project.new(file_system) parser = Parser.new(file_system) processor = Processor.new(parser, project) renderer = Renderer.new cfoo = Cfoo.new(processor, renderer, @stdout, @stderr) end |