method
pretty_print
v2_4_6 -
Show latest stable
- Class:
Gem::Resolver::LockSpecification
pretty_print(q)public
No documentation available.
# 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