Sha256: 7f5dc71a2d48a3c77c96f09176e375e525a36429ee7b7356b27c61b84357c200

Contents?: true

Size: 1.47 KB

Versions: 13

Compression:

Stored size: 1.47 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>cattr_writer (Rmobio::Rxml::BaseTransformer)</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 rxml/working2/base_transformer.rb, line 94</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cattr_writer</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">syms</span>)
        <span class="ruby-identifier">syms</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sym</span><span class="ruby-operator">|</span>
          <span class="ruby-identifier">class_eval</span>(<span class="ruby-value str">&quot;unless defined? @@\#{sym}\n@@\#{sym} = nil\nend\n\ndef self.\#{sym}=(obj)\n@@\#{sym} = obj\nend\n\ndef \#{sym}=(obj)\n@@\#{sym} = obj\nend\n&quot;</span>, <span class="ruby-keyword kw">__FILE__</span>, <span class="ruby-keyword kw">__LINE__</span>)
        <span class="ruby-keyword kw">end</span>
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rmobio-1.1.15 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.14 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.17 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.20 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.16 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.27 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.29 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.24 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.28 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.26 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.5 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.32 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html
rmobio-1.1.9 lib/rmobio/doc/classes/Rmobio/Rxml/BaseTransformer.src/M000094.html