<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomcha0079</author_name>
  <author_url>https://blog.hatena.ne.jp/tomcha0079/</author_url>
  <blog_title>Perlがくしゅう帳(Rubyも)</blog_title>
  <blog_url>https://tomcha.hatenablog.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>今日もRubyのコードを考えてみた。今日のお題は、こちら。List of Top 3 Hillsファイルを読み込んで、読み込んだデータのTop３を順番に出力するプログラム。ファイル読み込みの作法と、あとは並べ替えの部分をどうコードで表すかがポイントかな。そんなに難しい命令も使わずに書けそうなので、サラサラっと書いてみたのがコチラ↓array = [0,0,0]file = open(&quot;mountlist.txt&quot;)while text = file.gets if array[0] &lt; text.to_i array[2] = array[1] array[1] = array[0] arra…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftomcha.hatenablog.jp%2Fentry%2F4502189&quot; title=&quot;Rubyでコードを書いてみた〜序の２〜 - Perlがくしゅう帳(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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-03-09 01:33:56</published>
  <title>Rubyでコードを書いてみた〜序の２〜</title>
  <type>rich</type>
  <url>https://tomcha.hatenablog.jp/entry/4502189</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
