Sha256: fff0e70f16f290f797bc40796e3b897d6eb8b12f216acd9a061d35a916adbde6
Contents?: true
Size: 1.3 KB
Versions: 6
Compression:
Stored size: 1.3 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>cache_name_for_native_file (FileCache)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/FileCache.rb, line 26</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cache_name_for_native_file</span>(<span class="ruby-identifier">native_file</span>,<span class="ruby-identifier">extension</span>) <span class="ruby-identifier">image</span>=<span class="ruby-identifier">native_file</span>.<span class="ruby-identifier">file_system_image</span> <span class="ruby-identifier">index</span>=<span class="ruby-identifier">image</span>.<span class="ruby-identifier">files</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">native_file</span>) <span class="ruby-node">"#{native_file_cache_dir}/#{Digest::MD5.hexdigest(image.filename)}-#{index}.#{extension}"</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
6 entries across 6 versions & 1 rubygems