Sha256: ed09ab1580bcfea71da0f5e039a9d05b2eecb793e7be3858e8a908b1b7ff4253

Contents?: true

Size: 2 KB

Versions: 11

Compression:

Stored size: 2 KB

Contents

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html 
     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>
  <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">&lt;&lt;</span> <span class="ruby-value str">&quot; : &quot;</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>
</body>
</html>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby-vpi-12.0.1 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000063.html
ruby-vpi-12.0.0 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000063.html
ruby-vpi-11.1.1 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000063.html
ruby-vpi-11.1.0 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000061.html
ruby-vpi-12.0.2 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000063.html
ruby-vpi-7.3.0 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000045.html
ruby-vpi-7.2.0 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000039.html
ruby-vpi-8.0.0 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000045.html
ruby-vpi-8.1.0 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000059.html
ruby-vpi-9.0.0 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000061.html
ruby-vpi-8.2.0 ref/ruby/classes/XX/Markup/InstanceMethods.src/M000060.html