On Thu, Feb 17, 2011 at 3:47 AM, Tony Arcieri <tony.arcieri / medioh.com> wrote:
> It seems there are 3 ways of defining class methods (at least in common
> usage):
>
> 1) Defining a method on self:
> 2) Opening up self and defining the methods directly:
> 3) Placing class methods into a module, and extending a class with that:

4) Explicit definition

def C.m
...
end

i usually use this one since
1 it's visibly specified. The definition matches the use.
2 don't need to press pgup just to see who is self :)
3 if i change class name, it self checks itself since i need to retype.
4 less prone to self abuse :)

best regards -botp


best regards -botp