<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takehikom</author_name>
  <author_url>https://blog.hatena.ne.jp/takehikom/</author_url>
  <blog_title>わさっきhb</blog_title>
  <blog_url>https://takehikom.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>配列の各要素を出力するには 添付ファイルを見ました．ファイルを行ごとに読み出して，行末を取り除きながら配列に格納したのち，動作確認用に中身を出力している処理について， for item in array print item + &quot;\n&quot; end と書いていますが，Rubyらしくありません． これは puts array としてください．putsメソッドには，配列や，複数の要素を引数に与えることができます．引数に応じた改行処理も行ってくれますので，「\n」は不要です． ファイルに出力するには ファイル出力のコードも見ました．コメントアウトが多数あって，苦心の跡もうかがえますが，以下のように書く…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakehikom.hateblo.jp%2Fentry%2F20180824%2F1535105824&quot; title=&quot; forはなるべく使わない - わさっきhb&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>2018-08-24 19:17:04</published>
  <title> forはなるべく使わない</title>
  <type>rich</type>
  <url>https://takehikom.hateblo.jp/entry/20180824/1535105824</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
