Sha256: cffcfc1663633cb8441a5412e50a54c258ebfd5a9e606aaa4272374cee55e05f
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
module OSU # Validates an osu emplid. class Emplid # a valid emplid is an 8-9 digit string VALID_EMPLID = /\A\d{8,9}\z/ # Returns true if the emplid is valid. def self.valid?(emplid) case emplid when VALID_EMPLID then true else false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
osu_person-0.3 | lib/osu/emplid.rb |