[ 源代码: ruby-scanf ]
软件包:ruby-scanf(1.0.0-2)
Implementation of the C function scanf
scanf is an implementation of the C function scanf(3), modified as necessary for Ruby compatibility.
The methods provided are String#scanf, IO#scanf, and Kernel#scanf. Kernel#scanf is a wrapper around STDIN.scanf. IO#scanf can be used on any IO stream, including file handles and sockets. scanf can be called either with or without a block.