# 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
Add class methods for ruby classes
Category: Uncategorized |
Tags: ruby
Leave a Reply
You must be logged in to post a comment.