Sha256: 460b7166e33bc7b33af4e792c6c174676fd3519f80376232b1a0b322d5ef966e

Contents?: true

Size: 904 Bytes

Versions: 1

Compression:

Stored size: 904 Bytes

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>load_ruby (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 28</span>
  <span class="kw">def</span> load_ruby
    ruby_pi = @xml_document.find_all { |i| i.is_a? REXML::Instruction <span class="kw">and</span> i.target == <span class="str">'xml:script'</span> }
    ruby_pi.each <span class="kw">do</span> |pi|
      <span class="kw">if</span> pi.attributes[<span class="str">'uri'</span>] == <span class="str">'ruby'</span>
        load_eval(fetch_xml(pi.attributes[<span class="str">'url'</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/M000002.html