<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>littlebuddha</author_name>
  <author_url>https://blog.hatena.ne.jp/littlebuddha/</author_url>
  <blog_title>make world</blog_title>
  <blog_url>https://littlebuddha.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>忘れやすいので備忘録として記載。 サンプル hash = {&quot;Lemon&quot; =&gt; 100, &quot;Orange&quot; =&gt; 150, &quot;Banana&quot; =&gt; 250} p hash print(&quot;\n&quot;) puts &quot;キーのみを取得&quot; key_array = hash.keys p key_array print(&quot;\n&quot;) puts &quot;値のみを取得&quot; value_array = hash.values p value_array print(&quot;\n&quot;) puts &quot;to_aメソッドを利用して、キーと値を取得&quot; array = hash.to_a array.each do |variables| p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flittlebuddha.hatenadiary.org%2Fentry%2F20081110%2F1226284029&quot; title=&quot;“ハッシュ”のキーと値を配列に変換して同時に取得する - make world&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>2008-11-10 11:27:09</published>
  <title>“ハッシュ”のキーと値を配列に変換して同時に取得する</title>
  <type>rich</type>
  <url>https://littlebuddha.hatenadiary.org/entry/20081110/1226284029</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
