lib/procemon/function/proc_source/proc.rb in procemon-0.4.4 vs lib/procemon/function/proc_source/proc.rb in procemon-0.4.5
- old
+ new
@@ -8,12 +8,12 @@
begin
return_string= ProcSource.new
block= 0
end
- unless ProcSource.source_cache[self.source_location].nil?
- return ProcSource.source_cache[self.source_location]
+ unless inspect.nil?
+ return ProcSource.source_cache[self.inspect]
else
File.open(File.expand_path(self.source_location[0])
).each_line_from self.source_location[1] do |line|
block += line.source_formater_for_line_sub
@@ -26,10 +26,10 @@
if !return_string.include?('Proc.new')
return_string.sub!(/^[^{]*(?!={)/,'Proc.new')
end
- ProcSource.source_cache[self.source_location]= return_string
+ ProcSource.source_cache[self.inspect]= return_string
return return_string
end
end
alias :source_string :source
\ No newline at end of file