<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mTakata</author_name>
  <author_url>https://blog.hatena.ne.jp/mTakata/</author_url>
  <blog_title>Sun~sun~Flower's</blog_title>
  <blog_url>https://www.sunsunflowers.com/</blog_url>
  <categories>
    <anon>IT・プログラミング</anon>
  </categories>
  <description>こんにちは。 この記事は、プログラミング言語「Ruby」のフレームワーク「Rails」についての記事になります。 この記事を読む事で、 ・任意の文字列から、指定された文字列を取得する方法 ・指定した文字列がいくつあるか？数える方法 上記が分かります。 それでは、例題を用いて解説していきますね。 問題 任意の文字列で、&quot;hi&quot;がいくつあるか数えてその数を出力するメソッドを作りましょう。 ※わからない場合は、次のAPIを利用してみてください。 【関連URL】 http:// https://docs.ruby-lang.org/ja/search/ 出力例 count_hi('abc hi ho'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sunsunflowers.com%2Fentry%2Fit%2Frails-method-of-scan&quot; title=&quot;【Railsアプリケーション】任意の文字列から指定文字列を数える方法 - Sun~sun~Flower&amp;#39;s&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://cdn-ak.f.st-hatena.com/images/fotolife/m/mTakata/20200427/20200427224002.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-26 10:00:00</published>
  <title>【Railsアプリケーション】任意の文字列から指定文字列を数える方法</title>
  <type>rich</type>
  <url>https://www.sunsunflowers.com/entry/it/rails-method-of-scan</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
