<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int_remain</author_name>
  <author_url>https://blog.hatena.ne.jp/int_remain/</author_url>
  <blog_title>やまぶろぐ</blog_title>
  <blog_url>https://ponde.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>いろいろあって Prime クラスのソースを読んでいたらとても勉強になったよ。 Prime 素数全体を表すクラスだよ 素数全体というオブジェクトは1つしか存在しえないので、シングルトンになるよ 利便性のため、デフォルトインスタンスのメソッドをクラスメソッドとしても使用できるよ Prime.new で Ruby 1.8 の Prime の互換クラスのインスタンスを生成できるよ ソースをよむ lib/prime.rb から必要部分を抜粋するよ。 require &quot;singleton&quot; require &quot;forwardable&quot; class Prime include Enumerable @the…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fponde.hatenadiary.com%2Fentry%2F2014%2F03%2F01%2F213648&quot; title=&quot;Ruby の Prime がつよい - やまぶろぐ&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>2014-03-01 21:36:48</published>
  <title>Ruby の Prime がつよい</title>
  <type>rich</type>
  <url>https://ponde.hatenadiary.com/entry/2014/03/01/213648</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
