<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Ruby が型を明示的に書かないのはすごくラクだし気に入っているのだけれど、複雑な処理をするメソッドなどでは型注釈があった方がわかりやすい場合もあります。なので、コメントで型注釈をする仕方を自分で決めてみました。 ●引数（self も含む） -&gt; メソッド内の変数 &gt;&gt; 返り値 メソッド内に出現するすべての変数を登場順に書きます。引数と返り値は自明ならば省略します。 def hoge(a, b, c) #a, b, c -&gt; x, .. &gt;&gt; String x = a.each {} ... return result end ●型 型としてクラス名を指定します。下みたいな感じ。型が自明な場合…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2017%2F09%2F14%2F174206&quot; title=&quot;Ruby の型注釈のオレオレ記法 - Camera Obscura&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>2017-09-14 17:42:06</published>
  <title>Ruby の型注釈のオレオレ記法</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2017/09/14/174206</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
