<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>walf443</author_name>
  <author_url>https://blog.hatena.ne.jp/walf443/</author_url>
  <blog_title>walf443's blog</blog_title>
  <blog_url>https://walf443.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>classx</anon>
  </categories>
  <description>ClassXなクラスにこいつをincludeしてやると、標準ライブラリのloggerがattributeとして使えるようになります。 require 'classx/role/logger' class YourApp include ClassX extends ClassX::Commandable include ClassX::Role::Logger def run self.logger.debug(&quot;debug!!&quot;) # do something end end 別のModuleでattributeを定義してそいつをClassXなクラスにMixinしてやるというのはそのクラスの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwalf443.hatenablog.com%2Fentry%2F20080824%2F1219581110&quot; title=&quot;ClassX::Role::Logger - walf443&amp;#39;s 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>2008-08-24 21:31:50</published>
  <title>ClassX::Role::Logger</title>
  <type>rich</type>
  <url>https://walf443.hatenablog.com/entry/20080824/1219581110</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
