Sha256: 08f2523367c17f7a4054c040ec02d644bded4cd23af9edebd96fc6de807e3c44
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
class Mona::Project::Builder include Mona::Mixins Inject = Mona::Deps[ "project.factory", ] include Inject sig do params(project_root: String).returns(Mona::Project) end 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mona-0.2.3 | lib/mona/project/builder.rb |
mona-0.2.2 | lib/mona/project/builder.rb |