2012/6/8 Lars Haugseth <ruby-talk / larshaugseth.com>:
> The method is never called in your example. Instead, you assign a value to a
> local variable named "foo".
>
> def foo=(var)
>  puts "foo was called with '#{var}'."
>  42
> end

Yes, sorry, my fault, I failed to add the self receiver in the example.

Thanks a lot.

-- 
Iaki Baz Castillo
<ibc / aliax.net>