Feature #9445 ยป pp.patch
lib/pp.rb (working copy) | ||
---|---|---|
group(1, '{', '}') {
|
||
seplist(obj, nil, :each_pair) {|k, v|
|
||
group {
|
||
pp k
|
||
text '=>'
|
||
if Symbol === k && k =~ /\A\w+\z/
|
||
text "#{k}: "
|
||
else
|
||
pp k
|
||
text '=>'
|
||
end
|
||
group(1) {
|
||
breakable ''
|
||
pp v
|