diff options
| -rw-r--r-- | doc/stringio/stringio.md | 26 | ||||
| -rw-r--r-- | ext/stringio/stringio.c | 28 |
2 files changed, 27 insertions, 27 deletions
diff --git a/doc/stringio/stringio.md b/doc/stringio/stringio.md new file mode 100644 index 0000000000..345fc5f207 --- /dev/null +++ b/doc/stringio/stringio.md @@ -0,0 +1,26 @@ +\IO streams for strings, with access similar to +{IO}[rdoc-ref:IO]; +see {IO}[rdoc-ref:IO]. + +### About the Examples + +Examples on this page assume that \StringIO has been required: + +``` +require 'stringio' +``` + +And that these constants have been defined: + +``` +TEXT = <<EOT +First line +Second line + +Fourth line +Fifth line +EOT + +RUSSIAN = 'тест' +DATA = "\u9990\u9991\u9992\u9993\u9994" +``` diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 3c842265af..b6ab8cd6cf 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -2133,33 +2133,7 @@ strio_set_encoding_by_bom(VALUE self) /* * :markup: markdown * - * \IO streams for strings, with access similar to - * {IO}[rdoc-ref:IO]; - * see {IO}[rdoc-ref:IO]. - * - * ### About the Examples - * - * Examples on this page assume that \StringIO has been required: - * - * ``` - * require 'stringio' - * ``` - * - * And that these constants have been defined: - * - * ``` - * TEXT = <<EOT - * First line - * Second line - * - * Fourth line - * Fifth line - * EOT - * - * RUSSIAN = 'тест' - * DATA = "\u9990\u9991\u9992\u9993\u9994" - * ``` - * + * :include: stringio/stringio.md */ void Init_stringio(void) |
