<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nodocchi</author_name>
  <author_url>https://blog.hatena.ne.jp/nodocchi/</author_url>
  <blog_title>日々のメモ＠はてな</blog_title>
  <blog_url>https://nodocchi.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>範囲オブジェクト 範囲オブジェクトは each や map に渡せばその範囲での繰り返しになるが、そのままでは配列にならない。そのため、to_a を使うなどをする。 (1..10).map{|c| print c} #=&gt;12345678910 p (1..10) # 1..10 p [1..10] # [1..10] p (1..10).to_a # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] p [*1..10] # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] a = *1..10 p a # [1, 2, 3, 4, 5, 6, 7, 8, 9, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnodocchi.hatenablog.com%2Fentry%2F2020%2F12%2F11%2F152924&quot; title=&quot;Rubyメモ - 日々のメモ＠はてな&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>2020-12-11 15:29:24</published>
  <title>Rubyメモ</title>
  <type>rich</type>
  <url>https://nodocchi.hatenablog.com/entry/2020/12/11/152924</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
