Class: EmbeddedJs::PackageManagers::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/embedded_js/package_managers/factory.rb

Class Method Summary collapse

Class Method Details

.build(name) ⇒ Object



10
11
12
13
14
15
# File 'lib/embedded_js/package_managers/factory.rb', line 10

def build(name)
  case name
  when :npm then PackageManagers::Npm.new
  when :yarn then PackageManagers::Yarn.new
  end
end