Short Order Ruby
summary
Concrete recipes for command-line Ruby: one‑liners with -n -e -i edit files in place, use $_ and ARGF to process streamed or filename input, and set IO.sync = true to avoid buffering. Show subprocess patterns: backticks/%x, popen/popen3 and PTY plus select for multiplexing and expect for prompts. Built examples include a Campfire multiplayer text‑adventure bridge that works, a MySQL pager that draws Unicode bar charts, and a reusable header-insert script used three times.
AI-written summary · about
chapters (16)
- 0:00Introduction to Short Order Ruby
- 3:08Quick Ruby scripts magic
- 5:55Unix perfect for Ruby
- 8:06Piping Unix commands
- 10:18Ruby CLI shortcuts
- 12:28ARF for file input
- 15:40Edit files in-place
- 18:11Ruby with spreadsheets
- 23:37Pipeline buffering issues
- 26:32Call Unix from Ruby
- 33:02Advanced popen control
- 34:29Text adventures in Campfire
- 39:58Drive interactive Unix
- 41:01Mac OS automation tools
- 42:48Libraries for tasks
- 44:34Summary








