class Engine::Rating

Constants

EASY
FAIL
GOOD
HARD
MAX_RATING

Public Instance Methods

easy?() click to toggle source
# File lib/engine/rating.rb, line 16
def easy? ; rating == EASY end
fail?() click to toggle source
# File lib/engine/rating.rb, line 13
def fail? ; rating == FAIL end
good?() click to toggle source
# File lib/engine/rating.rb, line 15
def good? ; rating == GOOD end
hard?() click to toggle source
# File lib/engine/rating.rb, line 14
def hard? ; rating == HARD end
neg_rating() click to toggle source
# File lib/engine/rating.rb, line 9
def neg_rating
  MAX_RATING - rating
end