<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>rubyのIOにはいくつもメソッドがある。each/readline/gets 系統とポインタ系どうも相性が良くない。getc/ungetc はあるけど、gets/ungetsがない。こまったので代案を考えた require 'stringio' str =&lt;&lt;EOS 見出し記法 *〜〜 日記に見出し（h3）を付けます 時刻付き見出し記法 *t*〜〜, *t+1*〜〜 見出しに編集時刻を保存し表示します name属性付き見出し記法 *name*〜〜 見出しに好きな name 属性をつけます カテゴリー記法 *[〜〜]〜〜 日記にカテゴリーを設定します EOS sio = StringIO.ne…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F20100703%2F1278182498&quot; title=&quot;Ruby で gets をやり直す ungets 的なこと   - それマグで！&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-07-03 03:41:38</published>
  <title>Ruby で gets をやり直す ungets 的なこと  </title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/20100703/1278182498</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
