-
Notifications
You must be signed in to change notification settings - Fork 0
fpslater/Grade-class
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Ruby class that implements a letter-based grading system (A+, A, A-, ...). The class should be able to naturally sort by the value of grade (i.e., A+ > A > A-). The class should be constructed with a string-value for the grade. a_plus = Grade.new("A+") a = Grade.new("A") a_plus > a # should return true [a_plus, a].sort # should return [a, a_plus]
About
# Grade class is a comparable class that assigns a value to the initilized letter grade.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published