<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinkufencer</author_name>
  <author_url>https://blog.hatena.ne.jp/shinkufencer/</author_url>
  <blog_title>コード日進月歩</blog_title>
  <blog_url>https://shinkufencer.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Tips</anon>
  </categories>
  <description>あ、そんなこともできるんだというトリビア感と同時に普通にバグが滑り込みそうと思ったのでメモ 環境 $ ruby -v ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16] 出典 文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。 -instance method String#* (Ruby 2.5.0) 例 &quot;huga&quot; * 3 # =&gt; &quot;hugahugahuga&quot; &quot;0&quot; * 20 # =&gt; &quot;00000000000000000000&quot; 文字列ならもちろん変数でも動いてしまうので、期待値と沿わな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2018%2F11%2F15%2F092936&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>https://images-fe.ssl-images-amazon.com/images/I/51nY-YLt2ZL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-11-15 09:29:36</published>
  <title>Rubyの文字列は * をつかって掛け算のように書くことで繰り返し生成ができるが、注意が必要</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2018/11/15/092936</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
