ENV.each do |e|
p e
end
ENV: array of arrays
p: something like print or puts but better, doesn't interpolate!
ENV.each: iterate in a block each item of array ENV
do .. end: blocks
|e|: pipe, there is the block parameters
example:
["SHELL", "/bin/bash"]
["TERM", "xterm"]
Keine Kommentare:
Kommentar veröffentlichen