/ Published in: Ruby
Expand |
Embed | Plain Text
# Extend class methods for any ruby class class NameofClass class <<self # create class methods below def magic #insert your magic code here end end end # now #magic is available for NameofClass on a class level
You need to login to post a comment.
