ref/ruby/classes/XX/Markup/InstanceMethods.src/M000060.html in ruby-vpi-8.2.0 vs ref/ruby/classes/XX/Markup/InstanceMethods.src/M000060.html in ruby-vpi-9.0.0
- old
+ new
@@ -3,21 +3,26 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>xx_parse_attributes (XX::Markup::InstanceMethods)</title>
+ <title>xx_cdata_ (XX::Markup::InstanceMethods)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<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/ruby-vpi/xx.rb, line 391</span>
-391: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xx_parse_attributes</span> <span class="ruby-identifier">string</span>
-392: <span class="ruby-comment cmt">#--{{{</span>
-393: <span class="ruby-identifier">string</span> = <span class="ruby-identifier">string</span>.<span class="ruby-identifier">to_s</span>
-394: <span class="ruby-identifier">tokens</span> = <span class="ruby-identifier">string</span>.<span class="ruby-identifier">split</span> <span class="ruby-regexp re">%r/,/o</span>
-395: <span class="ruby-identifier">tokens</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">%r/[^=]+=/</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">key_eq</span><span class="ruby-operator">|</span> <span class="ruby-identifier">key_eq</span>.<span class="ruby-identifier">chop</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" : "</span>}}
-396: <span class="ruby-identifier">xx_parse_yaml_attributes</span>(<span class="ruby-identifier">tokens</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">','</span>))
-397: <span class="ruby-comment cmt">#--}}}</span>
-398: <span class="ruby-keyword kw">end</span></pre>
+ <pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/xx.rb, line 377</span>
+377: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xx_cdata_</span> <span class="ruby-operator">*</span><span class="ruby-identifier">objects</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>
+378: <span class="ruby-comment cmt">#--{{{</span>
+379: <span class="ruby-identifier">doc</span> = <span class="ruby-identifier">xx_doc</span>
+380:
+381: <span class="ruby-identifier">cdata</span> = <span class="ruby-operator">::</span><span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">CData</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span> <span class="ruby-value str">""</span>
+382:
+383: <span class="ruby-identifier">objects</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">object</span><span class="ruby-operator">|</span>
+384: <span class="ruby-identifier">cdata</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>
+385: <span class="ruby-keyword kw">end</span>
+386:
+387: <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">create</span> <span class="ruby-identifier">cdata</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>
+388: <span class="ruby-comment cmt">#--}}}</span>
+389: <span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file