Sha256: 026e7ba1444d10b7af3bff85455d2ec8185fee72ee5fc6b0fc8c1f8d360e9f9e

Contents?: true

Size: 373 Bytes

Versions: 43

Compression:

Stored size: 373 Bytes

Contents

class Volt
  class Environment
    def initialize
      @env = ENV['VOLT_ENV'] || 'development'
    end
    
    def ==(val)
      @env == val
    end
    
    def production?
      self.==('production')
    end

    def test?
      self.==('test')
    end

    def development?
      self.==('development')
    end
    
    def inspect
      @env.inspect
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
volt-0.6.5 lib/volt/volt/environment.rb
volt-0.6.4 lib/volt/volt/environment.rb
volt-0.6.3 lib/volt/volt/environment.rb
volt-0.6.2 lib/volt/volt/environment.rb
volt-0.6.1 lib/volt/volt/environment.rb
volt-0.6.0 lib/volt/volt/environment.rb
volt-0.5.18 lib/volt/volt/environment.rb
volt-0.5.17 lib/volt/volt/environment.rb
volt-0.5.16 lib/volt/volt/environment.rb
volt-0.5.15 lib/volt/volt/environment.rb
volt-0.5.14 lib/volt/volt/environment.rb
volt-0.5.13 lib/volt/volt/environment.rb
volt-0.5.12 lib/volt/volt/environment.rb
volt-0.5.11 lib/volt/volt/environment.rb
volt-0.5.10 lib/volt/volt/environment.rb
volt-0.5.9 lib/volt/volt/environment.rb
volt-0.5.8 lib/volt/volt/environment.rb
volt-0.5.7 lib/volt/volt/environment.rb
volt-0.5.6 lib/volt/volt/environment.rb
volt-0.5.4 lib/volt/volt/environment.rb