io_doc_fix.patch
| io.c (working copy) | ||
|---|---|---|
| 2688 | 2688 | |
| 2689 | 2689 |
/* |
| 2690 | 2690 |
* call-seq: |
| 2691 |
* ios.getc => fixnum or nil
|
|
| 2691 |
* ios.getc => string or nil
|
|
| 2692 | 2692 |
* |
| 2693 | 2693 |
* Reads a one-character string from <em>ios</em>. Returns |
| 2694 | 2694 |
* <code>nil</code> if called at end of file. |
| 2695 | 2695 |
* |
| 2696 | 2696 |
* f = File.new("testfile")
|
| 2697 |
* f.getc #=> "8"
|
|
| 2698 |
* f.getc #=> "1"
|
|
| 2697 |
* f.getc #=> "h"
|
|
| 2698 |
* f.getc #=> "e"
|
|
| 2699 | 2699 |
*/ |
| 2700 | 2700 | |
| 2701 | 2701 |
static VALUE |
| ... | ... | |
| 2720 | 2720 |
* <code>EOFError</code> on end of file. |
| 2721 | 2721 |
* |
| 2722 | 2722 |
* f = File.new("testfile")
|
| 2723 |
* f.readchar #=> "8"
|
|
| 2724 |
* f.readchar #=> "1"
|
|
| 2723 |
* f.readchar #=> "h"
|
|
| 2724 |
* f.readchar #=> "e"
|
|
| 2725 | 2725 |
*/ |
| 2726 | 2726 | |
| 2727 | 2727 |
static VALUE |
| ext/stringio/stringio.c (working copy) | ||
|---|---|---|
| 749 | 749 | |
| 750 | 750 |
/* |
| 751 | 751 |
* call-seq: |
| 752 |
* strio.readchar -> fixnum
|
|
| 752 |
* strio.readchar -> string
|
|
| 753 | 753 |
* |
| 754 | 754 |
* See IO#readchar. |
| 755 | 755 |
*/ |