- class Util
- class EditedFile
- def initialize(file, block)
- @file = file
- @block = block
- end
-
- def kind_of?(klass)
- klass == String || super
- end
-
- def to_s
- ::File.new(@file).collect do |line|
- line = @block.call(line)
- end.join("")
- end
- end
- end
-