I'd like to be able to use 
    
    
     myobj
    
    Run

and get a custom representation, not the standard 
    
    
    (var1: value, var2: value)
    
    Run

.

How can I achieve this? What method (or proc?) do I need to overload?

I tried overloading $ and repr but 
    
    
     myobj
    
    Run

still gave me the default string representation.

Reply via email to