Sha256: dada198d5c8b3eeaa26cd1e2663e84b8016dbe25405b0753a080c0a5cdf8140d
Contents?: true
Size: 432 Bytes
Versions: 3
Compression:
Stored size: 432 Bytes
Contents
module PlayTime class Track class InvalidTrack < StandardError; end ALPHA = 'alpha'.freeze BETA = 'beta'.freeze ROLLOUT = 'rollout'.freeze PRODUCTION = 'production'.freeze def self.validate!(track) raise InvalidTrack.new("#{track} is an invalid track") unless valid?(track) end private def self.valid?(track) [ALPHA, BETA, ROLLOUT, PRODUCTION].include?(track) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
play_time-0.0.3 | lib/play_time/track.rb |
play_time-0.0.2 | lib/play_time/track.rb |
play_time-0.0.1 | lib/play_time/track.rb |