Sha256: c3a2d5d2dcd5ea70b845ce06f0c209fdb1b5684310a8701e2ddc2949855bdf26
Contents?: true
Size: 1.41 KB
Versions: 9
Compression:
Stored size: 1.41 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>save_screendump (ScreenDumps)</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 test/tc_screen_dumps.rb, line 8</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save_screendump</span>(<span class="ruby-identifier">bytes</span>) <span class="ruby-identifier">filename</span>=<span class="ruby-node">"#{IMAGE_TEST_DIR}//#{@@counter}.png"</span> <span class="ruby-identifier">file</span>=<span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">filename</span>,<span class="ruby-value str">"wb"</span>) <span class="ruby-identifier">file</span><span class="ruby-operator"><<</span><span class="ruby-identifier">bytes</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">close</span> <span class="ruby-ivar">@@counter</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
9 entries across 9 versions & 1 rubygems