Sha256: d234c9ef192646189c3546b9d022c4e77b81fc89394e4bc8376ab798cf84425e
Contents?: true
Size: 275 Bytes
Versions: 1
Compression:
Stored size: 275 Bytes
Contents
require "grades/version" class Gradescore def self.runcheck(score) if score <= 40 ans = "Failed!" elsif (score > 40 && score <=50) ans = "pass" elsif (score > 50 && score <=60) ans = "2:2" elsif (score > 60 && score <=70) ans = "2:1" else ans = "1:1" end return ans end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grades-0.0.1 | lib/grades.rb |