Eric MSP Veith schreef op 3-6-2014 17:14:
> responds_to_all &= my_obj.respond_to? method

Oke,

I now have this :

def is_santa_clausable(obj)
    responds_to_all = true
    [:say_ho_ho_ho, :distribute_gifts, :go_down_the_chimney].each do 
|method|
           responds_to_all &= obj.respond_to? method
    end
end

But Instead of true of false I see this [:say_ho_ho_ho, 
:distribute_gifts, :go_down_the_chimney] as output.
Which I find wierd. because responds_to_all is true and obj.responds_to? 
method schould also be true or false.

Roelof