method

add_dependency

ruby latest stable - Class: Gem::Resolver::LockSpecification
add_dependency(dependency)
public

Adds dependency from the lockfile to this specification