method
from_stub
ruby latest stable - Class:
Bundler::StubSpecification
from_stub(stub)public
No documentation available.
# File lib/bundler/stub_specification.rb, line 7
def self.from_stub(stub)
return stub if stub.is_a?(Bundler::StubSpecification)
spec = new(stub.name, stub.version, stub.platform, nil)
spec.stub = stub
spec
end