method

pretty_print

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: LockSpecification
pretty_print(q) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/resolver/lock_specification.rb, line 48
  def pretty_print q # :nodoc:
    q.group 2, '[LockSpecification', ']' do
      q.breakable
      q.text "name: #{@name}"

      q.breakable
      q.text "version: #{@version}"

      unless @platform == Gem::Platform::RUBY then
        q.breakable
        q.text "platform: #{@platform}"
      end

      unless @dependencies.empty? then
        q.breakable
        q.text 'dependencies:'
        q.breakable
        q.pp @dependencies
      end
    end
  end
Register or log in to add new notes.