Sha256: 001df1f013161d2ca7fe984eff02ff8de0b4d9e3684316913710d1476b6c243b

Contents?: true

Size: 468 Bytes

Versions: 9

Compression:

Stored size: 468 Bytes

Contents

module Hippo

    class Environment
        def test?
            Hippo.config.environment == :test
        end
        def development?
            Hippo.config.environment == :development
        end
        def production?
            Hippo.config.environment == :production
        end
        def to_s
            Hippo.config.environment.to_s
        end
    end

    # @return [Environment]
    def self.env
        @environment ||= Environment.new
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 lib/hippo/environment.rb
hippo-fw-0.9.8 lib/hippo/environment.rb
hippo-fw-0.9.7 lib/hippo/environment.rb
hippo-fw-0.9.6 lib/hippo/environment.rb
hippo-fw-0.9.5 lib/hippo/environment.rb
hippo-fw-0.9.4 lib/hippo/environment.rb
hippo-fw-0.9.3 lib/hippo/environment.rb
hippo-fw-0.9.2 lib/hippo/environment.rb
hippo-fw-0.9.1 lib/hippo/environment.rb