Hi, everybody!

Jan Svitok ڧѧ():

> With mandatory parentheses this would be:
> class Whatever
>   attr_reader(:attr1)
> end

Yes, this would be less attractive than without parentheses, I think.
But. What the rule is? When and where to use parentheses, and where
not?
My point is:
1) such methods as require, attr_reader, before_filter need no
parentheses;
2) such methods as DRb::start_service or join need empty parentheses --
like start_service() or join();
3) methods with one String argument like puts "Hello!"  or p
self.inspect need no parentheses;
4) p with two or more arguments or with one argument of type different
from String need parentheses.

--
    Best respects, S.Z.