class Amber::Environment::Env

Defined in:

amber/environment/env.cr

Constant Summary

AMBER_ENV = "AMBER_ENV"

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(env : String = ENV[AMBER_ENV]? || "development") #

[View source]

Instance Method Detail

def ==(env2 : EnvType) #

[View source]
def in?(env_list : Array(EnvType)) #

[View source]
def in?(*env_list : Object) #
Description copied from class Object

Returns true if self is included in the collection argument.

10.in?(0..100)     # => true
10.in?({0, 1, 10}) # => true
10.in?(0, 1, 10)   # => true
10.in?(:foo, :bar) # => false

[View source]
def to_s(io) #

[View source]

Macro Detail

macro method_missing(call) #

[View source]