<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hisaichi5518</author_name>
  <author_url>https://blog.hatena.ne.jp/hisaichi5518/</author_url>
  <blog_title>パルカワ2</blog_title>
  <blog_url>https://hisaichi5518.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>パーフェクトRuby見てたら、出来そうだなーと思ったのでやってみました。 本当はガードオブジェクト作りたい。 def hoge trace = TracePoint.new(:return, :raise) do |tp| next if tp.method_id != :hoge # io.closeなど、ここにhoge()が終わったら実行したい処理を書く trace.disable end trace.enable # なんかそれっぽい処理 end hoge() TracePoint面白い。 http://docs.ruby-lang.org/ja/2.1.0/class/TracePoi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhisaichi5518.hatenablog.jp%2Fentry%2F2014%2F10%2F14%2F113845&quot; title=&quot;メソッドを抜けたらある処理を実行する、をRubyでやってみる - パルカワ2&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-10-14 11:38:45</published>
  <title>メソッドを抜けたらある処理を実行する、をRubyでやってみる</title>
  <type>rich</type>
  <url>https://hisaichi5518.hatenablog.jp/entry/2014/10/14/113845</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
