use File.size as a class method for 1.8.7 support