Anyway, it seems that to avoid providing getter name with its first letter capitalized as setter name,
_ar_registerBelongsTo##class and set##class uses 'class' for their method names,
but it is possible that one has more than one relationships to a class.
So I think it might be better to use something like
belongs_to_dec(class, getter, Getter, dependency)
for generality.
Is there any other reasons why 'class' is used for those names?
Hi,
This project seems very interesting!
Anyway, it seems that to avoid providing getter name with its first letter capitalized as setter name, _ar_registerBelongsTo##class and set##class uses 'class' for their method names, but it is possible that one has more than one relationships to a class.
So I think it might be better to use something like belongs_to_dec(class, getter, Getter, dependency) for generality.
Is there any other reasons why 'class' is used for those names?
Thanks
Shunpei