method

to_lock

ruby latest stable - Class: Bundler::LazySpecification

Method not available on this version

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

to_lock()
public

No documentation available.

# File lib/bundler/lazy_specification.rb, line 54
    def to_lock
      out = String.new

      if platform == Gem::Platform::RUBY || platform.nil?
        out << "    #{name} (#{version})\n"
      else
        out << "    #{name} (#{version}-#{platform})\n"
      end

      dependencies.sort_by(&:to_s).uniq.each do |dep|
        next if dep.type == :development
        out << "    #{dep.to_lock}\n"
      end

      out
    end