D
David Garamond
How about including the class name in the pp output for classes which
have variables (example: object A below)? Because otherwise it's not
always obvious that it's "A".
$ ruby -v
ruby 1.8.1 (2004-01-01) [i686-linux-gnu]
$ irb
irb(main):001:0> require 'pp'
irb(main):002:0> class A; @v1="1"; @v2="2"; end
irb(main):003:0> class B; end
irb(main):004:0> pp A
#<Class:0x4036ca74 @v1="1", @v2="2">
irb(main):005:0> pp B
B
irb(main):006:0> p A
A
irb(main):007:0> p B
B
have variables (example: object A below)? Because otherwise it's not
always obvious that it's "A".
$ ruby -v
ruby 1.8.1 (2004-01-01) [i686-linux-gnu]
$ irb
irb(main):001:0> require 'pp'
irb(main):002:0> class A; @v1="1"; @v2="2"; end
irb(main):003:0> class B; end
irb(main):004:0> pp A
#<Class:0x4036ca74 @v1="1", @v2="2">
irb(main):005:0> pp B
B
irb(main):006:0> p A
A
irb(main):007:0> p B
B