On 18 April 2017 at 09:50, Leam Hall <leamhall / gmail.com> wrote:

> On 04/17/17 16:48, Matthew Kerwin wrote:
>
> Isn't `Citizen.class == Class` ?
>>
>> If so, it should probably be:
>>
>>     @character.careers[Citizen] == 2
>>
>> Cheers
>>
>
> So, had to go do some server work in the garage. Interestingly the test
> now passes but I'm going to have to refactor. The careers hash wasn't
> supposed to have a class as a key!
>
> Leam
>
>
If you want something a bit more vanilla, remember that `SomeClass.name =>
"SomeClass"`

But yeah, the whole thing smells a bit like something got confused at some
point.

Cheers
-- 
  Matthew Kerwin
  http://matthew.kerwin.net.au/
(supressed text/html)
Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>