Hi,Matthew and Rhys, thanks for your solution and suggestion, it's well done now.

On 2014ǯ0911 04:55, Matthew Kerwin wrote:
> On 11/09/2014, Rhys Stansfield <r.stansfield / voc-8.com> wrote:
>> #include? needs to be passed a symbol rather than a string, it doesn't
>> perform type conversion, so item.singleton_methods has :congratulate in and
>> you're checking for 'congratulate' which looks the same but as far as
>> Ruby's concerned is something pretty different.
> Yes, IIRC one of the changes between Ruby 1.8 and 1.9 was that lots of
> methods that formerly returned strings now returned symbols.
>
> And for the record, if a collection of objects ever doesn't contain
> something you thought it should, you can always print out the
> collection to see what it *does* contain. E.g.
>
>      p starbox.singleton_methods
>