- class Name
- #some code describing the class behavior
Class names in Ruby are Constants, so the first letter should be a capital.
class Cat # correct
class dog # wrong, throws an error
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0