Skip to content

Commit

Permalink
env
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jul 7, 2021
1 parent ad99e9d commit 2d75e75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crystal/examples/other/env.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ENV.keys.sort.each {|key|
puts "%-25s %s" % {key, ENV[key]}
}
7 changes: 7 additions & 0 deletions crystal/other.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ require "some_name" # Find it somewhere (standard library, src directory

All the elements of an array "inherit" the type from the array

## Environment variables
{id: envriornment-variables}
{i: ENV}

![](examples/other/env.cr)


## Int32 or Nil
{id: int32-or-nil}

Expand Down

0 comments on commit 2d75e75

Please sign in to comment.