Sha256: b6415a29edcb24935ee5bfb8b497a189d4899010e05c290f3171cd7242fa01b3
Contents?: true
Size: 1.87 KB
Versions: 3
Compression:
Stored size: 1.87 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>set_options (Mu::Ddt)</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/mu/api/ddt.rb, line 156</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_options</span>(<span class="ruby-identifier">names</span>=[], <span class="ruby-identifier">values</span>=[]) <span class="ruby-identifier">responses</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">names</span>.<span class="ruby-identifier">length</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/scenario/options/#{names[i]}/#{values[i]}"</span>) <span class="ruby-identifier">responses</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">response</span> <span class="ruby-keyword kw">end</span> <span class="ruby-identifier">msg</span> <span class="ruby-identifier">responses</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span> <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">responses</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mu-5.7.2.6 | rdoc/classes/Mu/Ddt.src/M000258.html |
mu-5.7.2.5 | rdoc/classes/Mu/Ddt.src/M000258.html |
mu-5.7.2.4 | rdoc/classes/Mu/Ddt.src/M000258.html |