Create method with known identifier then alias into place.
This means we never have to rely on define_method (which is slower and uses more memory), even when we have attributes containing characters that are not allowed in standard method names. (I am mainly changing this because the duplication annoys me, though.)
Showing
想要评论请 注册 或 登录