Copy stdin to stdout: Difference between revisions
→{{header|Ruby}}: Add Ruby
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(→{{header|Ruby}}: Add Ruby) |
||
Line 611:
</pre>
=={{header|Ruby}}==
<syntaxhighlight lang="ruby">
$stdout << $stdin.gets
</syntaxhighlight>
=={{header|Rust}}==
<syntaxhighlight lang="rust">use std::io;
|