Make attr* methods define public methods if self in caller is not same as receiver
Previously, attr* methods could be private even if not in the private section of a class/module block.
This uses the same approach that ruby started using for define_method in 1fc33199736f316dd71d0c551edbf514528ddde6.
Fixes [Bug #4537]
Make attr* methods define public methods if self in caller is not same as receiver
Previously, attr* methods could be private even if not in the
private section of a class/module block.
This uses the same approach that ruby started using for define_method
in 1fc33199736f316dd71d0c551edbf514528ddde6.
Fixes [Bug #4537]