Adding additional methods to a ruby superclass

For fun I wanted to improve on my fuzzydates gem and rather add a new method to the Date class. Here is the code that seems to work for me.

class Date
class << self def end_of_this_month return Date.current+1.month-Date.current.day end def first_of_next_month Date.end_of_this_month+1.day end end end