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



144
145
146
147
# File 'lib/sym_tbl_gsub.rb', line 144

def symtbl_gsub ( symtbl )
  x = Pathname.new(@path.dup)
  x.symtbl_gsub!(symtbl)
end

#symtbl_gsub!(symtbl) ⇒ Object



140
141
142
# File 'lib/sym_tbl_gsub.rb', line 140

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