Sha256: 338d5a170003cdc0c9a8c7306246551c07a26715477508c8aa967c6522d4ee6e
Contents?: true
Size: 1.4 KB
Versions: 18
Compression:
Stored size: 1.4 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>[] (PNG::Canvas)</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/PatchedPNG.rb, line 203</span> <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>) <span class="ruby-identifier">raise</span> <span class="ruby-node">"bad x value #{x} >= #{@height}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">x</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@height</span> <span class="ruby-identifier">raise</span> <span class="ruby-node">"bad y value #{y} >= #{@width}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">y</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@width</span> <span class="ruby-ivar">@data</span>[<span class="ruby-identifier">y</span>][<span class="ruby-identifier">x</span>] <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
18 entries across 9 versions & 1 rubygems