class Launch::Environment::Env

Defined in:

launch/environment/env.cr

Constant Summary

LAUNCH_ENV = "LAUNCH_ENV"

Constructors

Instance Method Summary

Macro Summary

Instance methods inherited from class Object

blank? blank?, present? present?

Constructor Detail

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

[View source]

Instance Method Detail

def ==(env2 : String | Symbol) #

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

[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]