<div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">On 15 July 2015 at 13:03, Duncan Stuart <span dir="ltr"><<a href="mailto:dgmstuart@gmail.com" target="_blank">dgmstuart@gmail.com</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p>Can I get NoExpectedDate to pretend to be a Date (like SimpleDelegator lies about it's class)? Is that evil?</p></blockquote></div>I'd like to make the point that SimpleDelegator doesn't exactly lie about its class, call `#class` on an instance and you'll get exactly what you expect. The issue is that it has no `#inspect` method, so when printed on the console, `#inspect` is delegated and it masquerades as the the object being wrapped .</div><div class="gmail_extra"><br></div><div class="gmail_extra">This has caught me out several times in the past, so I quite often add an inspect method myself.</div></div>