Sha256: 2f7761598e308b384c528aec7651927a3877f58bd5a7855790b081c12937dc68

Contents?: true

Size: 1.73 KB

Versions: 1

Compression:

Stored size: 1.73 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>new (ResultSet)</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/marjoree/result_set.rb, line 5</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">statement</span>, <span class="ruby-identifier">output_param_names</span> = [])
    <span class="ruby-ivar">@padding</span> = <span class="ruby-value str">&quot; &quot;</span>
    <span class="ruby-ivar">@spacer</span> = <span class="ruby-value str">&quot; &quot;</span>
    <span class="ruby-ivar">@columns</span> = <span class="ruby-identifier">statement</span>.<span class="ruby-identifier">columns</span>
    <span class="ruby-ivar">@hashes</span> = []

    <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">output_param_names</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
      <span class="ruby-identifier">apply_output_params</span> <span class="ruby-identifier">output_param_names</span>, <span class="ruby-identifier">statement</span>
    <span class="ruby-keyword kw">else</span>
      <span class="ruby-identifier">extract_results</span> <span class="ruby-identifier">statement</span>
    <span class="ruby-keyword kw">end</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
marjoree-0.0.9 ./html/classes/ResultSet.src/M000011.html