method

from_stub

ruby latest stable - Class: Bundler::StubSpecification

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

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