Class: File
Overview
module Md5sum
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#md5sum ⇒ Object
22 23 24 25 26 |
# File 'lib/md5sum.rb', line 22 def md5sum md5 = Digest::MD5.new each { |l| md5 << l } md5 end |
#symtbl_gsub(symtbl) ⇒ Object
277 278 279 280 |
# File 'lib/sym_tbl_gsub.rb', line 277 def symtbl_gsub ( symtbl ) contents = read contents.symtbl_gsub! symtbl end |
#symtbl_gsub!(symtbl) ⇒ Object
267 268 269 270 271 272 273 274 275 |
# File 'lib/sym_tbl_gsub.rb', line 267 def symtbl_gsub! ( symtbl ) contents = read result = contents.symtbl_gsub! symtbl if result truncate 0 write contents end result end |