Class: Mona::Project::Builder
- Inherits:
-
Object
- Object
- Mona::Project::Builder
- Includes:
- Deps[ "project.factory", ], Mixins
- Defined in:
- lib/mona/project/builder.rb
Constant Summary collapse
Instance Method Summary collapse
Methods included from Mixins
Instance Method Details
#call(project_root) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/mona/project/builder.rb', line 13 def call(project_root) project_file_path = "#{project_root}/#{Mona::PROJECT_FILENAME}" project_init_proc = proc { instance_eval(File.read(project_file_path)) } project = factory.call(project_root, init_proc: project_init_proc) end |