The result of #each is the thing that was iterated over.

Enumerable#all? might be good here:

    [:say_ho_ho_ho, :distribute_gifts, :go_down_the_chimney].all? do 
|method|
      obj.respond_to?(method)
    end

On 06/03/2014 09:21 AM, Roelof Wobben wrote:
> 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.