<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yarb</author_name>
  <author_url>https://blog.hatena.ne.jp/yarb/</author_url>
  <blog_title>yarbの日記</blog_title>
  <blog_url>https://yarb.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>コメントで指摘されて気づいた。String#gsubは文字列置換のためのメソッドだけど、置換後の文字列を省略すると、イテレータとして動作してブロックを評価した結果で置換を行う、とマニュアルにある。これは便利そうだ。というわけで、練習問題として、いわゆるl33tっぽい文章に変換するスクリプトを書いてみた。大文字と小文字を意図的に混ぜて書く、子どもっぽいワナビーギークの文体というか。 #!/usr/bin/ruby while line = gets print line.gsub(/(\w)/){|chr| if rand &gt; 0.5 chr.upcase else chr.downcase.g…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyarb.hatenadiary.org%2Fentry%2F20081117%2Fp2&quot; title=&quot;なんちゃってl33t文 - yarbの日記&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>2008-11-17 00:00:00</published>
  <title>なんちゃってl33t文</title>
  <type>rich</type>
  <url>https://yarb.hatenadiary.org/entry/20081117/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
