/[hyperestraier]/upstream/0.5.3/doc/rbapidoc/classes/Estraier/Document.src/M000044.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /upstream/0.5.3/doc/rbapidoc/classes/Estraier/Document.src/M000044.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (hide annotations)
Wed Aug 3 15:25:48 2005 UTC (18 years, 9 months ago) by dpavlin
File MIME type: text/html
File size: 1711 byte(s)
import of upstream 0.5.3

1 dpavlin 10 <?xml version="1.0" encoding="iso-8859-1"?>
2     <!DOCTYPE html
3     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5    
6     <html>
7     <head>
8     <title>add_text (Estraier::Document)</title>
9     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10     <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11     </head>
12     <body class="standalone-code">
13     <pre><span class="ruby-comment cmt"># File estraier.rb, line 62</span>
14     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">text</span>)
15     <span class="ruby-constant">Utility</span><span class="ruby-operator">::</span><span class="ruby-identifier">check_types</span>({ <span class="ruby-identifier">text</span>=<span class="ruby-operator">&gt;</span><span class="ruby-constant">String</span> }) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
16     <span class="ruby-identifier">text</span> = <span class="ruby-identifier">text</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/[ \t\r\n\v\f]+/</span>, <span class="ruby-value str">&quot; &quot;</span>)
17     <span class="ruby-identifier">text</span> = <span class="ruby-identifier">text</span>.<span class="ruby-identifier">lstrip</span>.<span class="ruby-identifier">rstrip</span>.<span class="ruby-identifier">squeeze</span>(<span class="ruby-value str">&quot; &quot;</span>)
18     <span class="ruby-ivar">@dtexts</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">text</span>)
19     <span class="ruby-keyword kw">end</span></pre>
20     </body>
21     </html>

  ViewVC Help
Powered by ViewVC 1.1.26