Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svenfuchs/capture_stdout
Adds Kernel.capture_stdout(&block). Useful e.g. for testing command line tools
https://github.com/svenfuchs/capture_stdout
Last synced: about 2 months ago
JSON representation
Adds Kernel.capture_stdout(&block). Useful e.g. for testing command line tools
- Host: GitHub
- URL: https://github.com/svenfuchs/capture_stdout
- Owner: svenfuchs
- Created: 2010-06-10T14:48:59.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-06-10T15:14:08.000Z (over 14 years ago)
- Last Synced: 2024-09-22T03:11:41.722Z (3 months ago)
- Language: Ruby
- Homepage: http://github.com/svenfuchs/capture_stdout
- Size: 87.9 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. capture_stdout
Adds Kernel.capture_stdout(&block)
Useful e.g. for testing command line tools
string = 'yeah'
output = capture_stdout { print(string) }
assert_equal string, outputh2. Installation
$ gem install capture_stdout