<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tbpg</author_name>
  <author_url>https://blog.hatena.ne.jp/tbpg/</author_url>
  <blog_title>Tbpgr Blog</blog_title>
  <blog_url>https://tbpgr.hatenablog.com/</blog_url>
  <categories>
    <anon>Rubyによるデザインパターン</anon>
    <anon>Ruby</anon>
  </categories>
  <description>概要 カスタムオブジェクトを作成する 詳細 Rubyのメタプログラミング機能を利用して、動的にクラス内の定義を生成します。 サンプル仕様 lambdaのリストを与えると、リストの中からランダムにlambdaを実装したメソッドを定義するクラスを作成します。動的にクラスを作るためのメソッドはRandomMethodHoldable moduleに定義します。 RandomMethodHoldableは lambdaのリストをClass変数に保持するappend_lambdasをクラスメソッドを持ちます。 lambdaのリストからランダムにどれかを取得しめインスタンスメソッドとして定義するための d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20140521%2F1400680591&quot; title=&quot;Ruby | カスタムオブジェクトを作成する - Tbpgr Blog&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-05-21 22:56:31</published>
  <title>Ruby | カスタムオブジェクトを作成する</title>
  <type>rich</type>
  <url>https://tbpgr.hatenablog.com/entry/20140521/1400680591</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
