Skip to content

Commit d0a6780

Browse files
nobumatzbot
authored andcommitted
[ruby/stringio] [DOC] Split the examples StringIO into the document file
ruby/stringio@04ba28af00
1 parent d17d49d commit d0a6780

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

doc/stringio/stringio.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
\IO streams for strings, with access similar to
2+
{IO}[rdoc-ref:IO];
3+
see {IO}[rdoc-ref:IO].
4+
5+
### About the Examples
6+
7+
Examples on this page assume that \StringIO has been required:
8+
9+
```
10+
require 'stringio'
11+
```
12+
13+
And that these constants have been defined:
14+
15+
```
16+
TEXT = <<EOT
17+
First line
18+
Second line
19+
20+
Fourth line
21+
Fifth line
22+
EOT
23+
24+
RUSSIAN = 'тест'
25+
DATA = "\u9990\u9991\u9992\u9993\u9994"
26+
```

ext/stringio/stringio.c

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,33 +2133,7 @@ strio_set_encoding_by_bom(VALUE self)
21332133
/*
21342134
* :markup: markdown
21352135
*
2136-
* \IO streams for strings, with access similar to
2137-
* {IO}[rdoc-ref:IO];
2138-
* see {IO}[rdoc-ref:IO].
2139-
*
2140-
* ### About the Examples
2141-
*
2142-
* Examples on this page assume that \StringIO has been required:
2143-
*
2144-
* ```
2145-
* require 'stringio'
2146-
* ```
2147-
*
2148-
* And that these constants have been defined:
2149-
*
2150-
* ```
2151-
* TEXT = <<EOT
2152-
* First line
2153-
* Second line
2154-
*
2155-
* Fourth line
2156-
* Fifth line
2157-
* EOT
2158-
*
2159-
* RUSSIAN = 'тест'
2160-
* DATA = "\u9990\u9991\u9992\u9993\u9994"
2161-
* ```
2162-
*
2136+
* :include: stringio/stringio.md
21632137
*/
21642138
void
21652139
Init_stringio(void)

0 commit comments

Comments
 (0)