APIdock / Ruby
/
method

file

ruby latest stable - Class: Digest ::Instance
file(name)
public

Updates the digest with the contents of a given file name and returns self.

# File ext/digest/lib/digest.rb, line 49
 def file(name)
 File.open(name, "rb") {|f|
 buf = ""
 while f.read(16384, buf)
 update buf
 end
 }
 self
 end

AltStyle によって変換されたページ (->オリジナル) /