Classes
suggest changeVersions
[{“Name”:“1.6.8”,“GroupName”:null},{“Name”:“1.8”,“GroupName”:null},{“Name”:“1.9”,“GroupName”:null},{“Name”:“2.0”,“GroupName”:null},{“Name”:“2.1”,“GroupName”:null},{“Name”:“2.2”,“GroupName”:null},{“Name”:“2.3”,“GroupName”:null}]
Syntax
- class Name
- #some code describing the class behavior
- end
Remarks
Class names in Ruby are Constants, so the first letter should be a capital.
class Cat # correct
end
class dog # wrong, throws an error
end
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents