title: override to_s while keeping output of inspect
body: <p>i override the to_s method to get pretty output when i use puts but at the same time i seem to loose my ability to inspect the object. Is there a way to get the normal output of inspect while overriding to_s ? </p>
  
  <pre><code>class Person
    attr_accessor :first, :last, :birthdate
    def initialize(first=nil, last=nil, birthdate=nil)
      @first, @last, @birthdate = first, last, birthdate
    end
    def age
      if birthdate
        Time.now.year-birthdate
      else
        0
      end
    end
    def to_s
      "#{@first} #{@last} (#{age})"
    end
  end
  
  me = Person.new("Peter", "Marien", 1962)
  p me  &gt;&gt;Peter Marien (50)
  p me.inspect  &gt;&gt;"Peter Marien (50)"
  
  #Need #&lt;Person:0x1ec2550 @first="Peter", @last="Marien", @birthdate=1962&gt;
  </code></pre>