Sha256: 0bf0b5c77cde33b39b8a8059044e06422dc235dc5280d0d7cf839de1bc40c061

Contents?: true

Size: 1.75 KB

Versions: 1

Compression:

Stored size: 1.75 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>extract_from (SimpleMapper::Base)</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/simple_mapper/base.rb, line 56</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extract_from</span>(<span class="ruby-identifier">formatted_data</span>)
        <span class="ruby-identifier">objs</span> = <span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;from_#{format_name}&quot;</span><span class="ruby-node">&quot;from_#{format_name}&quot;</span>, <span class="ruby-identifier">formatted_data</span>)
        <span class="ruby-identifier">objs</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">objs</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">extended</span> {<span class="ruby-ivar">@persisted</span> = <span class="ruby-keyword kw">true</span>}} <span class="ruby-operator">:</span> <span class="ruby-identifier">objs</span>.<span class="ruby-identifier">extended</span> {<span class="ruby-ivar">@persisted</span> = <span class="ruby-keyword kw">true</span>}
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simplemapper-0.0.1 doc/classes/SimpleMapper/Base.src/M000072.html