Class: Pathname
Instance Method Summary collapse
Instance Method Details
#md5sum ⇒ Object
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
136 137 138 139 |
# File 'lib/sym_tbl_gsub.rb', line 136 def symtbl_gsub ( symtbl ) x = Pathname.new(@path.dup) x.symtbl_gsub!(symtbl) end |
#symtbl_gsub!(symtbl) ⇒ Object
132 133 134 |
# File 'lib/sym_tbl_gsub.rb', line 132 def symtbl_gsub! ( symtbl ) self unless @path.symtbl_gsub!(symtbl).nil? end |