Crystal Medium · Lesson 9

IO, IO::Memory and Process

Write to any IO with << and puts, read lines from IO::Memory, pass IO into methods for testable output, run commands with Process.run, and read ENV.

Lessons · Crystal Medium · Lesson 9 of 10

IO, IO::Memory and Process

Write to any IO with << and puts, read lines from IO::Memory, pass IO into methods for testable output, run commands with Process.run, and read ENV.

Illustration for Crystal
Write to any IO with << and puts, read lines from IO::Memory, pass IO into methods for testable output, run commands with Process.run, and read ENV.