Use singular define_attribute_method
`define_attribute_methods` splats the arguments, then calls out to `define_attribute_method` for each. When defining a singule attribute, using the singular version of the method saves us an array and an extra method call.
Showing
想要评论请 注册 或 登录