| Use Case | Command | Description |
|---|---|---|
| 🔍 Create a null IO | Puma::NullIO.new |
Creates an IO-like object that always appears empty |
| 📖 Read from null IO | nullio.read |
Returns empty string (no data) |
| ✍️ Write to null IO | nullio.write("data") |
Ignores input, returns number of bytes written (0) |
| 🔄 Iterate over lines | nullio.each { |line| } |
No iteration (no lines) |
| 🔚 Check end-of-file | nullio.eof? |
Always returns true |
Provides an IO-like object that always appears to contain no data. Used as the value for rack.input when the request has no body.
close — Closes the IO (no-op)each — Iterates over lines (none)eof? — Returns trueflush — Flushes (no-op)gets — Returns nilputs — Writes with newline (ignored)read — Returns empty stringrewind — Rewinds (no-op)size — Returns 0string — Returns empty stringsync — Returns truesync= — Sets sync (ignored)write — Ignores input, returns 0Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 00:47 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format