<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>第2部の最後です。そろそろRubyに慣れてきました。 wcで例外処理 wcクローンで例外のお勉強。 wc.rb #!/usr/bin/ruby -w if ARGV.size == 0 STDERR.puts &quot;Usage : ./wc.rb [FILES]...&quot; exit 1 end lines = 0 words = 0 chars = 0 ARGV.each do |file| begin input = open(file) l = 0 w = 0 c = 0 while line = input.gets l += 1 c += line.size line.sub!(/^\s+/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20070429%2F1177807682&quot; title=&quot; たのしいRuby 第9章 例外処理 - ボクノス&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>2007-04-29 09:48:02</published>
  <title> たのしいRuby 第9章 例外処理</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20070429/1177807682</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
