<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>technohippy</author_name>
  <author_url>https://blog.hatena.ne.jp/technohippy/</author_url>
  <blog_title>ずっと君のターン</blog_title>
  <blog_url>https://technohippy.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>かつてActiveSupportにあったけど、Ruby1.8.5の登場で惜しまれつつ亡くなったBinding.of_callerが、Rubiniusだと簡単に実現できるとか。 # http://gihyo.jp/news/report/01/rubykaigi2008/0001 class Binding def self.of_caller Binding.setup MethodContext.current.sender.sender end end これは早速やってみなければ $ rbx binding_of_caller.rb An exception occurred runnin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechnohippy.hatenadiary.org%2Fentry%2F20110105%2F1294241368&quot; title=&quot;RubiniusでBinding.of_caller的な - ずっと君のターン&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>https://cdn-ak.f.st-hatena.com/images/fotolife/t/technohippy/20110106/20110106001820.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-01-05 00:29:28</published>
  <title>RubiniusでBinding.of_caller的な</title>
  <type>rich</type>
  <url>https://technohippy.hatenadiary.org/entry/20110105/1294241368</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
