# File lib/linecache.rb, line 433 def update_script_cache(script, opts) # return false unless script_is_eval?(script) # string = opts[:string] || script.eval_source lines = {:plain => string.split(/\n/)} lines[opts[:output]] = highlight_string(string, opts[:output]) if opts[:output] @@script_cache[script] = LineCacheInfo.new(nil, nil, lines, nil, opts[:sha1], opts[:compiled_method]) return true end