Class: Pathname

Inherits:
Object show all
Defined in:
lib/md5sum.rb,
lib/sym_tbl_gsub.rb

Instance Method Summary collapse

Instance Method Details

#md5sumObject



33
34
35
36
37
# File 'lib/md5sum.rb', line 33

def md5sum
  md5 = Digest::MD5.new
  each_line { |l| md5 << l }
  md5
end

#symtbl_gsub(symtbl) ⇒ Object



125
126
127
# File 'lib/sym_tbl_gsub.rb', line 125

def symtbl_gsub ( symtbl )
  dup.symtbl_gsub!(symtbl)
end

#symtbl_gsub!(symtbl) ⇒ Object



121
122
123
# File 'lib/sym_tbl_gsub.rb', line 121

def symtbl_gsub! ( symtbl )
  self unless @path.symtbl_gsub!(symtbl).nil?
end