method

new

new(name, *requirements)
public

Constructs a dependency with name and requirements. The last argument can optionally be the dependency type, which defaults to :runtime.