2012-02-19から1日間の記事一覧
ReVIEWドキュメントの中にどんな要素が、どれくらい含まれているのか数えます。 #!/usr/bin/ruby # -*- coding: utf-8 -*- #カウント用ハッシュの初期値0 my_count = Hash.new(0) while line = ARGF.gets #多くのブロック要素 if line =~ /^(\/\/.+?)[\[\{]/…
ReVIEWドキュメントの中にどんな要素が、どれくらい含まれているのか数えます。 #!/usr/bin/ruby # -*- coding: utf-8 -*- #カウント用ハッシュの初期値0 my_count = Hash.new(0) while line = ARGF.gets #多くのブロック要素 if line =~ /^(\/\/.+?)[\[\{]/…