When to use a '-' or '+' when defining methods

In the DateMonger challenge, I had issues getting the method to work. I eventually discovered that I should have been using a ‘+’ at the start of the name instead of a ‘-’. Once I changed it to a ‘+’ it stopped giving me errors.

Can someone please explain to me what the rules are around using the ‘-’ or ‘+’ at the start of the method name?


The - defines an instance method where the + defines a class method. The challenge is asking us to create a class method :slight_smile: