<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hitode909</author_name>
  <author_url>https://blog.hatena.ne.jp/hitode909/</author_url>
  <blog_title>hitode909の日記</blog_title>
  <blog_url>https://blog.sushi.money/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Ruby1.9にはRipperというライブラリが添付されていて，これを使うとRubyのソースコードを構文解析できる． library ripper Ripperを使ってソースコード中のトークンの出現回数を数えてみた． このようなスクリプトを書いた． hitode909's gist: 206185 — Gist #!/usr/bin/env ruby1.9 # -*- coding: utf-8 -*- require 'ripper' result = Hash.new{ |h,k| h[k] = 0 } ARGF.read.split(/\s/).each{ |file| Ripper.t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.sushi.money%2Fentry%2F20091009%2F1255112547&quot; title=&quot; Rubyのプログラムのソースコード中のトークンの出現回数を調べてみる - hitode909の日記&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>2009-10-09 03:22:27</published>
  <title> Rubyのプログラムのソースコード中のトークンの出現回数を調べてみる</title>
  <type>rich</type>
  <url>https://blog.sushi.money/entry/20091009/1255112547</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
