Sha256: c16a343239fc17e867332420b1f946923564138d6984e610ff2edb6f0e3fb01e

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true
# typed: true

module Radical
  class Env
    class << self
      def radical_env
        ENV['RADICAL_ENV'] || ''
      end

      def development?
        radical_env.downcase == 'development'
      end

      def test?
        radical_env.downcase == 'test'
      end

      def production?
        radical_env.downcase == 'production'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radical-1.2.0 lib/radical/env.rb
radical-1.1.0 lib/radical/env.rb