Use @ symbol in a rails method name -
is there way me utilize '@' symbol in rails method name? e.g.
def @method_name end
rails doesn't seem it.
i want adhere external conventions (external rails).
it can done this:
define_method('@test') 'test' end
this method has called with:
model.send('@test')
i not recommend it, since ugly , complicated , against philosophy of ruby. can done.
kind of video: https://www.youtube.com/watch?v=evpvhgielf8
ruby-on-rails method-names
No comments:
Post a Comment