This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
to_lock()
public
Generates the content to be entered into the lockfile. Saves type and
remote and also calls to `options_to_lock`.
Plugin should use `options_to_lock` to
save information in lockfile and not override this.
Note: Do not override if you don’t know what you are doing.
# File lib/bundler/plugin/api/source.rb, line 254
def to_lock
out = String.new("#{LockfileParser::PLUGIN}\n")
out << " remote: #{@uri}\n"
out << " type: #{@type}\n"
options_to_lock.each do |opt, value|
out << " #{opt}: #{value}\n"
end
out << " specs:\n"
end