~ubuntu-branches/ubuntu/trusty/hyperestraier/trusty-proposed

« back to all changes in this revision

Viewing changes to doc/rubypureapi/classes/EstraierPure/Document.src/M000048.html

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2006-11-14 05:28:32 UTC
  • mfrom: (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061114052832-0lzqzcefn8mt4yqe
Tags: 1.4.9-1.1
* Non-maintainer upload.
* High-urgency upload for RC bugfix.
* Set HOME=$(CURDIR)/junkhome when building, otherwise the package build
  will incorrectly look for headers there -- and fail when the directory
  exists and is unreadable, as happens sometimes on sudo-using
  autobuilders!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?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_attr (EstraierPure::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 estraierpure.rb, line 53</span>
14
 
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_attr</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
15
 
      <span class="ruby-constant">Utility</span><span class="ruby-operator">::</span><span class="ruby-identifier">check_types</span>({ <span class="ruby-identifier">name</span>=<span class="ruby-operator">&gt;</span><span class="ruby-constant">String</span>, <span class="ruby-identifier">value</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">name</span> = <span class="ruby-identifier">name</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">name</span> = <span class="ruby-identifier">name</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-identifier">value</span> = <span class="ruby-identifier">value</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>)
19
 
      <span class="ruby-identifier">value</span> = <span class="ruby-identifier">value</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>)
20
 
      <span class="ruby-ivar">@attrs</span>[<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">value</span>
21
 
      <span class="ruby-keyword kw">nil</span>
22
 
    <span class="ruby-keyword kw">end</span></pre>
23
 
</body>
24
 
</html>
 
 
b'\\ No newline at end of file'