<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuhei_kagaya</author_name>
  <author_url>https://blog.hatena.ne.jp/yuhei_kagaya/</author_url>
  <blog_title>yuhei.kagaya</blog_title>
  <blog_url>https://yuheikagaya.hatenablog.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>Rangeの範囲 p (1..10).to_a p (1...10).to_a [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [1, 2, 3, 4, 5, 6, 7, 8, 9] 多重代入とflatten 複数の引数でも、配列でも、どっちでも引数にとれて便利 def f(*params) params.flatten.reduce { |sum, v| sum + v } end p f 10, 20, 30 p f [10, 20, 30] p f 10, [20, 30] 60 60 60 Proc#curry カリー化したProcオブジェクトを返す def f(&amp;bl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuheikagaya.hatenablog.jp%2Fentry%2F2015%2F07%2F17%2F191047&quot; title=&quot;最近学んだRuby - yuhei.kagaya&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>2015-07-17 19:10:47</published>
  <title>最近学んだRuby</title>
  <type>rich</type>
  <url>https://yuheikagaya.hatenablog.jp/entry/2015/07/17/191047</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
