2007-06-26から1日間の記事一覧
pathnameを拡張して、あるディレクトリー以下のすべてのファイルを取得してみる。 すでにありそうな・・まぁ練習だし作ってみよう。 require "pathname" class Pathname def each_file if file? yield self else children.each do |child| child.each_file {…
ツッコミやアドバイスがあればよろしくお願いします!
pathnameを拡張して、あるディレクトリー以下のすべてのファイルを取得してみる。 すでにありそうな・・まぁ練習だし作ってみよう。 require "pathname" class Pathname def each_file if file? yield self else children.each do |child| child.each_file {…
ツッコミやアドバイスがあればよろしくお願いします!