Sha256: 7ae8283814ccad200f578a5c70f80196420bb9d2aef8acde1b493af986c6af83
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>process_content (Tailor)</title> <link rel=StyleSheet href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body bgcolor="white"> <pre><span class="cmt"># File tailor.rb, line 167</span> <span class="kw">def</span> process_content(xml_context, eval_context) elements = REXML::XPath.match(xml_context, <span class="str">'.//*[@content]'</span>) elements.each <span class="kw">do</span> |element| <span class="kw">begin</span> content = element.attributes[<span class="str">'content'</span>].strip element.text = eval(content.untaint, eval_context).to_s element.attributes.get_attribute(<span class="str">'content'</span>).remove <span class="kw">rescue</span> NameError <span class="kw">next</span> <span class="kw">end</span> <span class="kw">end</span> <span class="kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mega-0.3.1 | pub/xml/xmltailor/rdoc/classes/Tailor.src/M000008.html |