<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>satoshi_hatta</author_name>
  <author_url>https://blog.hatena.ne.jp/satoshi_hatta/</author_url>
  <blog_title>satoshi_hatta’s blog</blog_title>
  <blog_url>https://satoshi-hatta.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>6/23 学習内容とまとめ rubyドリル 検索問題 任意の文字列に&quot;code&quot;が左から何文字目に出てくるか、その数を出力するメソッドを作ります。 indexメソッド 文字列や配列の中に指定した文字列が含まれていた場合、その文字列の開始位置を整数の値で返すメソッド str.index(検索したい文字列,[検索を開始する位置]) def count_code(str) puts str.index(&quot;code&quot;, 0) + 1 end indexメソッドは文字列の先頭を0から数えるので+1にします。 ifとelse問題 20時から翌朝7時までは「NG」、それ以外は「OK」とオウムが喋るメソッドを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsatoshi-hatta.hateblo.jp%2Fentry%2F2021%2F07%2F12%2F143637&quot; title=&quot;TEHC CAMP 91期夜間休日 卒業後活動記録 - satoshi_hatta’s blog&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>2021-07-12 14:36:37</published>
  <title>TEHC CAMP 91期夜間休日 卒業後活動記録</title>
  <type>rich</type>
  <url>https://satoshi-hatta.hateblo.jp/entry/2021/07/12/143637</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
