Why not?
s/File.size?(f).to_i/File.size(f)/