method
pretty_print
v2_2_9 -
Show latest stable
- Class:
Gem::Resolver::ActivationRequest
pretty_print(q)public
No documentation available.
# File lib/rubygems/resolver/activation_request.rb, line 140
def pretty_print q # :nodoc:
q.group 2, '[Activation request', ']' do
q.breakable
q.pp @spec
q.breakable
q.text ' for '
q.pp @request
case @others_possible
when false then
when true then
q.breakable
q.text 'others possible'
else
unless @others_possible.empty? then
q.breakable
q.text 'others '
q.pp @others_possible.map { |s| s.full_name }
end
end
end
end