From: Josh Cheek Date: 2011-08-10T08:30:56+09:00 Subject: Re: Inspect method --20cf307ca1e80f6cbd04aa1af42b Content-Type: text/plain; charset=ISO-8859-1 On Tue, Aug 9, 2011 at 11:49 AM, amir e. wrote: > Hi > I want to know exactly what does inspect method do ? It returns a string representation of the object. It differs from to_s in that it is intended to be informative as opposed to pretty. For example: require 'date' today = Date.today today.inspect # => "#" today.to_s # => "2011-08-09" > and What does happened , if we don't use inspect ? In what context? --20cf307ca1e80f6cbd04aa1af42b--