Sha256: 907f9d3c1f4dfb5e8405ca757b71a7b1139527cd1f306deef36ef6aebb5e8910
Contents?: true
Size: 1.76 KB
Versions: 1
Compression:
Stored size: 1.76 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>get_value_from_maps (ExpectedResultSet)</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/expected_result_set.rb, line 31</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_value_from_maps</span>( <span class="ruby-identifier">key</span>, <span class="ruby-identifier">fixture_maps</span>) <span class="ruby-identifier">fixture_maps</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fixture_map</span><span class="ruby-operator">|</span> <span class="ruby-identifier">value</span> = (<span class="ruby-identifier">fixture_map</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_sym</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">fixture_map</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>]) <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</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/ExpectedResultSet.src/M000007.html |