Sha256: 507057c4e3035cd5a31af607ad92188601633df53ebea3171977bc9dad2875dd
Contents?: true
Size: 1.42 KB
Versions: 10
Compression:
Stored size: 1.42 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
10 entries across 10 versions & 1 rubygems