/ Published in: Ruby
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# 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
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)