Sha256: d3fc6e0f952eb6493e455f5b3a45c709cc1a0e38b030d1ff583366d01558f1ce

Contents?: true

Size: 1.87 KB

Versions: 1

Compression:

Stored size: 1.87 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>setup (TC_XML_Document)</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 TRASH/libxml-ruby-old/tests/tc_xml_document.rb, line 4</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>()
    <span class="ruby-identifier">xp</span> = <span class="ruby-constant">XML</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>.<span class="ruby-identifier">new</span>()
    <span class="ruby-identifier">assert_instance_of</span>(<span class="ruby-constant">XML</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>, <span class="ruby-identifier">xp</span>)
    <span class="ruby-identifier">str</span> = <span class="ruby-value str">'&lt;ruby_array uga=&quot;booga&quot; foo=&quot;bar&quot;&gt;&lt;fixnum&gt;one&lt;/fixnum&gt;&lt;fixnum&gt;two&lt;/fixnum&gt;&lt;/ruby_array&gt;'</span>
    <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">xp</span>.<span class="ruby-identifier">string</span> = <span class="ruby-identifier">str</span>)
    <span class="ruby-ivar">@doc</span> = <span class="ruby-identifier">xp</span>.<span class="ruby-identifier">parse</span>
    <span class="ruby-identifier">assert_instance_of</span>(<span class="ruby-constant">XML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>, <span class="ruby-ivar">@doc</span>)
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mega-0.3.1 pub/xml/libxml/rdoc/classes/TC_XML_Document.src/M000047.html