<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m1smile10often</author_name>
  <author_url>https://blog.hatena.ne.jp/m1smile10often/</author_url>
  <blog_title>出る杭は打たれない</blog_title>
  <blog_url>https://maimux2x.hatenablog.com/</blog_url>
  <categories>
    <anon>学んだこと</anon>
  </categories>
  <description>ファイルを実行した時とirbでコードを実行したときの違いが気になった こんにちは、まいむです。 私は現在、Fjord Boot Campでプログラミング学習中なのですが、課題に取り組む中でちょっと気になったことがありました。 何かというとRubyのコードを書いたファイルを実行した時とirbでコードを実行したときの違いです。 例えばmilk.rbと題して以下のコードが書かれたファイルをターミナルで実行します。 # milk.rb milk = [&quot;牛乳&quot;, &quot;豆乳&quot;, &quot;オーツミルク&quot;] milk.each do |cafelatte| puts cafelatte end // ターミナルでの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaimux2x.hatenablog.com%2Fentry%2F2022%2F05%2F21%2F204855&quot; title=&quot;irbのinspectについて - 出る杭は打たれない&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>2022-05-21 20:48:55</published>
  <title>irbのinspectについて</title>
  <type>rich</type>
  <url>https://maimux2x.hatenablog.com/entry/2022/05/21/204855</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
