Sha256: 95428381ccfb67fc8a83e33acb2b2140398f4fd412412f2fe00701f800668d5d
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
class Brut::Framework::ProjectEnvironment def initialize(string_value) @value = case string_value when "development" then "development" when "test" then "test" when "production" then "production" else raise ArgumentError.new("'#{string_value}' is not a valid project environment") end end def development? = @value == "development" def test? = @value == "test" def production? = @value == "production" def to_s = @value end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brut-0.0.1 | lib/brut/framework/project_environment.rb |