Whereas if you try the following:
------------------------------------------------------------
p var
 ------------------------------------------------------------
it prints:
#<Foo:0x401f36b4 @var="bar">

Is there a way to override this behavior?  So you could put 
something different much like the array or hash printout with
the #p method?

--Andrew

> > ------------------------------------------------------------
> > #to_s			| calls the 'stringify method' which prints
> > 				| a pretty version of the string (such as
> > 				| a way to print arrays in a meaningful way
> > 				| to a human)
> 
> This one is cool.
> 
> class  Foo
>    def initialize
>      @var = "bar"
>    end
>    def to_s
>      "This is a customized string"
>    end
> end
> 
> var = Foo.new
> 
> puts var
> 
> Prints out:
> "This is a customized string"
>