Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renaming README -> README.rdoc.

Updating make-file accordingly and removing rdoc generated files from repository.
  • Loading branch information...
commit 46740a34c54f2ec236f58357983a9d6adcabac03 1 parent 92d44e5
Laust Rud authored
Showing with 3 additions and 18,941 deletions.
  1. +1 −0  .gitignore
  2. +2 −2 Makefile
  3. 0  README → README.rdoc
  4. +0 −414 docs/html/classes/Amrita.html
  5. +0 −120 docs/html/classes/Amrita/AmsHandler.html
  6. +0 −227 docs/html/classes/Amrita/AmsTemplate.html
  7. +0 −66 docs/html/classes/Amrita/AsIsFormatter.html
  8. +0 −194 docs/html/classes/Amrita/Attr.html
  9. +0 −339 docs/html/classes/Amrita/AttrArray.html
  10. +0 −97 docs/html/classes/Amrita/CacheManager.html
  11. +0 −99 docs/html/classes/Amrita/DummyCacheManager.html
  12. +0 −547 docs/html/classes/Amrita/Element.html
  13. +0 −85 docs/html/classes/Amrita/ExpandByMember.html
  14. +0 −118 docs/html/classes/Amrita/ExpandContext.html
  15. +0 −253 docs/html/classes/Amrita/Formatter.html
  16. +0 −106 docs/html/classes/Amrita/HtmlParseError.html
  17. +0 −125 docs/html/classes/Amrita/HtmlParser.html
  18. +0 −162 docs/html/classes/Amrita/HtmlTagInfo.html
  19. +0 −220 docs/html/classes/Amrita/Listener.html
  20. +0 −169 docs/html/classes/Amrita/MergeTemplate.html
  21. +0 −81 docs/html/classes/Amrita/ModelMisMatch.html
  22. +0 −116 docs/html/classes/Amrita/ModuleCache.html
  23. +0 −506 docs/html/classes/Amrita/Node.html
  24. +0 −312 docs/html/classes/Amrita/NodeArray.html
  25. +0 −120 docs/html/classes/Amrita/PartsTemplate.html
  26. +0 −86 docs/html/classes/Amrita/PartsTemplate/PartsTempleteExpander.html
  27. +0 −179 docs/html/classes/Amrita/PreFormatter.html
  28. +0 −71 docs/html/classes/Amrita/PrettyPrintFormatter.html
  29. +0 −141 docs/html/classes/Amrita/SanitizedString.html
  30. +0 −166 docs/html/classes/Amrita/Sanitizer.html
  31. +0 −66 docs/html/classes/Amrita/SingleLineFormatter.html
  32. +0 −130 docs/html/classes/Amrita/SourceCache.html
  33. +0 −232 docs/html/classes/Amrita/Tag.html
  34. +0 −82 docs/html/classes/Amrita/TagBlock.html
  35. +0 −82 docs/html/classes/Amrita/TagDD.html
  36. +0 −82 docs/html/classes/Amrita/TagDT.html
  37. +0 −82 docs/html/classes/Amrita/TagEmpty.html
  38. +0 −135 docs/html/classes/Amrita/TagInfo.html
  39. +0 −216 docs/html/classes/Amrita/TagInfo/TagInfoItem.html
  40. +0 −82 docs/html/classes/Amrita/TagInline.html
  41. +0 −82 docs/html/classes/Amrita/TagItem.html
  42. +0 −82 docs/html/classes/Amrita/TagList.html
  43. +0 −82 docs/html/classes/Amrita/TagP.html
  44. +0 −83 docs/html/classes/Amrita/TagPre.html
  45. +0 −87 docs/html/classes/Amrita/TagTableSection.html
  46. +0 −294 docs/html/classes/Amrita/Template.html
  47. +0 −126 docs/html/classes/Amrita/TemplateFile.html
  48. +0 −150 docs/html/classes/Amrita/TemplateFileWithCache.html
  49. +0 −119 docs/html/classes/Amrita/TemplateText.html
  50. +0 −91 docs/html/classes/Amrita/XMLParser.html
  51. +0 −68 docs/html/classes/Amx.html
  52. +0 −99 docs/html/classes/Amx/AmxContext.html
  53. +0 −91 docs/html/classes/Amx/Document.html
  54. +0 −279 docs/html/classes/Amx/Template.html
  55. +0 −80 docs/html/classes/Array.html
  56. +0 −108 docs/html/classes/CKAmritaElement.html
  57. +0 −80 docs/html/classes/Integer.html
  58. +0 −80 docs/html/classes/Number.html
  59. +0 −60 docs/html/classes/REXML.html
  60. +0 −80 docs/html/classes/REXML/Element.html
  61. +0 −1  docs/html/created.rid
  62. +0 −245 docs/html/files/README.html
  63. +0 −242 docs/html/files/README_ja.html
  64. +0 −245 docs/html/files/README_ja.html.back
  65. +0 −559 docs/html/files/docs/Cgi.html
  66. +0 −491 docs/html/files/docs/Cgi_ja.html
  67. +0 −493 docs/html/files/docs/Cgi_ja.html.back
  68. +0 −422 docs/html/files/docs/QuickStart.html
  69. +0 −423 docs/html/files/docs/QuickStart_ja.html
  70. +0 −425 docs/html/files/docs/QuickStart_ja.html.back
  71. +0 −491 docs/html/files/docs/Tour.html
  72. +0 −719 docs/html/files/docs/Tour2.html
  73. +0 −612 docs/html/files/docs/Tour2_ja.html
  74. +0 −617 docs/html/files/docs/Tour2_ja.html.back
  75. +0 −497 docs/html/files/docs/Tour_ja.html
  76. +0 −499 docs/html/files/docs/Tour_ja.html.back
  77. +0 −507 docs/html/files/docs/XML.html
  78. +0 −475 docs/html/files/docs/XML_ja.html
  79. +0 −494 docs/html/files/docs/XML_ja.html.back
  80. +0 −110 docs/html/files/lib/amrita/ams_rb.html
  81. +0 −70 docs/html/files/lib/amrita/amx_rb.html
  82. +0 −67 docs/html/files/lib/amrita/cgikit_rb.html
  83. +0 −111 docs/html/files/lib/amrita/compiler_rb.html
  84. +0 −109 docs/html/files/lib/amrita/format_rb.html
  85. +0 −109 docs/html/files/lib/amrita/handlers_rb.html
  86. +0 −109 docs/html/files/lib/amrita/merge_rb.html
  87. +0 −108 docs/html/files/lib/amrita/node_expand_rb.html
  88. +0 −102 docs/html/files/lib/amrita/node_rb.html
  89. +0 −110 docs/html/files/lib/amrita/parser_rb.html
  90. +0 −108 docs/html/files/lib/amrita/parts_rb.html
  91. +0 −102 docs/html/files/lib/amrita/tag_rb.html
  92. +0 −113 docs/html/files/lib/amrita/template_rb.html
  93. +0 −111 docs/html/files/lib/amrita/xml_rb.html
  94. +0 −94 docs/html/fr_class_index.html
  95. +0 −63 docs/html/fr_file_index.html
  96. +0 −248 docs/html/fr_method_index.html
  97. +0 −22 docs/html/index.html
  98. +0 −87 docs/html/rdoc-style.css
View
1  .gitignore
@@ -1 +1,2 @@
sample.log
+docs/html
View
4 Makefile
@@ -9,7 +9,7 @@ SITE_DIR=$(PREFIX)/lib/site_ruby/${RUBY_VER}
BIN_DIR=$(PREFIX)/bin
#RPMROOT=$(HOME)/redhat
RPMROOT=$(HOME)/rpm
-DOCDIR=$(PREFIX)/share/doc/amrita/html
+DOCDIR=docs/html
all : ;
@@ -56,7 +56,7 @@ profile_it :
(cd test; ruby -r profile.rb -I../lib testall.rb)
rdoc:
- rdoc --op $(DOCDIR) -S --main README README docs/QuickStart docs/Tour docs/Tour2 docs/XML docs/Cgi lib/amrita README_ja docs/QuickStart_ja docs/Tour_ja docs/XML_ja docs/Tour2_ja docs/Cgi_ja
+ rdoc --op $(DOCDIR) -S --main README.rdoc.html README.rdoc docs/QuickStart docs/Tour docs/Tour2 docs/XML docs/Cgi lib/amrita README_ja docs/QuickStart_ja docs/Tour_ja docs/XML_ja docs/Tour2_ja docs/Cgi_ja
(cd $(DOCDIR)/files/; ruby -i.back -ne 'print gsub("iso-8859-1", "EUC-JP") unless /<?xml/' *ja.html)
(cd $(DOCDIR)/files/docs/; ruby -i.back -ne 'print gsub("iso-8859-1", "EUC-JP") unless /<?xml/' *ja.html)
View
0  README → README.rdoc
File renamed without changes
View
414 docs/html/classes/Amrita.html
@@ -1,414 +0,0 @@
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<html><head>
- <title>Module: Amrita</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" />
- <script type="text/javascript" language="JavaScript">
- <!--
- function popCode(url) {
- window.open(url, "Code",
- "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- //-->
- </script>
-</head>
-
-<body bgcolor="white">
-
-<table summary="Information on class" width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <sup><font color="aqua">Module</font></sup> Amrita
- </td>
- <td align="right">
- <table summary="layout" cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
- <a href="../files/lib/amrita/xml_rb.html" class="aqua">
-lib/amrita/xml.rb
- </a>
-<br />
- <a href="../files/lib/amrita/template_rb.html" class="aqua">
-lib/amrita/template.rb
- </a>
-<br />
- <a href="../files/lib/amrita/tag_rb.html" class="aqua">
-lib/amrita/tag.rb
- </a>
-<br />
- <a href="../files/lib/amrita/parts_rb.html" class="aqua">
-lib/amrita/parts.rb
- </a>
-<br />
- <a href="../files/lib/amrita/parser_rb.html" class="aqua">
-lib/amrita/parser.rb
- </a>
-<br />
- <a href="../files/lib/amrita/node_expand_rb.html" class="aqua">
-lib/amrita/node_expand.rb
- </a>
-<br />
- <a href="../files/lib/amrita/node_rb.html" class="aqua">
-lib/amrita/node.rb
- </a>
-<br />
- <a href="../files/lib/amrita/merge_rb.html" class="aqua">
-lib/amrita/merge.rb
- </a>
-<br />
- <a href="../files/lib/amrita/handlers_rb.html" class="aqua">
-lib/amrita/handlers.rb
- </a>
-<br />
- <a href="../files/lib/amrita/format_rb.html" class="aqua">
-lib/amrita/format.rb
- </a>
-<br />
- <a href="../files/lib/amrita/compiler_rb.html" class="aqua">
-lib/amrita/compiler.rb
- </a>
-<br />
- <a href="../files/lib/amrita/ams_rb.html" class="aqua">
-lib/amrita/ams.rb
- </a>
-<br />
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
- <!-- banner header -->
-
-
-
-
-
-<table summary="Methods" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Methods</td></tr>
-</table>
-<div class="name-list">
-<a href="#M000025">a</a>&nbsp; &nbsp;
-<a href="#M000022">convert</a>&nbsp; &nbsp;
-<a href="#M000021">convert</a>&nbsp; &nbsp;
-<a href="#M000023">convert</a>&nbsp; &nbsp;
-<a href="#M000020">convert</a>&nbsp; &nbsp;
-<a href="#M000026">def_tag</a>&nbsp; &nbsp;
-<a href="#M000027">def_tag2</a>&nbsp; &nbsp;
-<a href="#M000024">e</a>&nbsp; &nbsp;
-<a href="#M000028">format_inline</a>&nbsp; &nbsp;
-<a href="#M000029">format_pretty</a>&nbsp; &nbsp;
-<a href="#M000030">noescape</a>&nbsp; &nbsp;
-<a href="#M000031">pre</a>&nbsp; &nbsp;
-</div>
-
-
-<table summary="List of classes" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Classes and Modules</td></tr>
-</table>
-<div class="classlist">
-Module <a href="Amrita/CacheManager.html" class="link">Amrita::CacheManager</a><br />
-Module <a href="Amrita/ExpandByMember.html" class="link">Amrita::ExpandByMember</a><br />
-Module <a href="Amrita/Node.html" class="link">Amrita::Node</a><br />
-Module <a href="Amrita/PartsTemplate.html" class="link">Amrita::PartsTemplate</a><br />
-&nbsp;&nbsp;::Class <a href="Amrita/PartsTemplate/PartsTempleteExpander.html" class="link">Amrita::PartsTemplate::PartsTempleteExpander</a><br />
-Module <a href="Amrita/Sanitizer.html" class="link">Amrita::Sanitizer</a><br />
-Module <a href="Amrita/XMLParser.html" class="link">Amrita::XMLParser</a><br />
-Class <a href="Amrita/AmsHandler.html" class="link">Amrita::AmsHandler</a><br />
-Class <a href="Amrita/AmsTemplate.html" class="link">Amrita::AmsTemplate</a><br />
-Class <a href="Amrita/AsIsFormatter.html" class="link">Amrita::AsIsFormatter</a><br />
-Class <a href="Amrita/Attr.html" class="link">Amrita::Attr</a><br />
-Class <a href="Amrita/AttrArray.html" class="link">Amrita::AttrArray</a><br />
-Class <a href="Amrita/DummyCacheManager.html" class="link">Amrita::DummyCacheManager</a><br />
-Class <a href="Amrita/Element.html" class="link">Amrita::Element</a><br />
-Class <a href="Amrita/ExpandContext.html" class="link">Amrita::ExpandContext</a><br />
-Class <a href="Amrita/Formatter.html" class="link">Amrita::Formatter</a><br />
-Class <a href="Amrita/HtmlParseError.html" class="link">Amrita::HtmlParseError</a><br />
-Class <a href="Amrita/HtmlParser.html" class="link">Amrita::HtmlParser</a><br />
-Class <a href="Amrita/HtmlTagInfo.html" class="link">Amrita::HtmlTagInfo</a><br />
-Class <a href="Amrita/Listener.html" class="link">Amrita::Listener</a><br />
-Class <a href="Amrita/MergeTemplate.html" class="link">Amrita::MergeTemplate</a><br />
-Class <a href="Amrita/ModelMisMatch.html" class="link">Amrita::ModelMisMatch</a><br />
-Class <a href="Amrita/ModuleCache.html" class="link">Amrita::ModuleCache</a><br />
-Class <a href="Amrita/NodeArray.html" class="link">Amrita::NodeArray</a><br />
-Class <a href="Amrita/PreFormatter.html" class="link">Amrita::PreFormatter</a><br />
-Class <a href="Amrita/PrettyPrintFormatter.html" class="link">Amrita::PrettyPrintFormatter</a><br />
-Class <a href="Amrita/SanitizedString.html" class="link">Amrita::SanitizedString</a><br />
-Class <a href="Amrita/SingleLineFormatter.html" class="link">Amrita::SingleLineFormatter</a><br />
-Class <a href="Amrita/SourceCache.html" class="link">Amrita::SourceCache</a><br />
-Class <a href="Amrita/Tag.html" class="link">Amrita::Tag</a><br />
-Class <a href="Amrita/TagBlock.html" class="link">Amrita::TagBlock</a><br />
-Class <a href="Amrita/TagDD.html" class="link">Amrita::TagDD</a><br />
-Class <a href="Amrita/TagDT.html" class="link">Amrita::TagDT</a><br />
-Class <a href="Amrita/TagEmpty.html" class="link">Amrita::TagEmpty</a><br />
-Class <a href="Amrita/TagInfo.html" class="link">Amrita::TagInfo</a><br />
-&nbsp;&nbsp;::Class <a href="Amrita/TagInfo/TagInfoItem.html" class="link">Amrita::TagInfo::TagInfoItem</a><br />
-Class <a href="Amrita/TagInline.html" class="link">Amrita::TagInline</a><br />
-Class <a href="Amrita/TagItem.html" class="link">Amrita::TagItem</a><br />
-Class <a href="Amrita/TagList.html" class="link">Amrita::TagList</a><br />
-Class <a href="Amrita/TagP.html" class="link">Amrita::TagP</a><br />
-Class <a href="Amrita/TagPre.html" class="link">Amrita::TagPre</a><br />
-Class <a href="Amrita/TagTableSection.html" class="link">Amrita::TagTableSection</a><br />
-Class <a href="Amrita/Template.html" class="link">Amrita::Template</a><br />
-Class <a href="Amrita/TemplateFile.html" class="link">Amrita::TemplateFile</a><br />
-Class <a href="Amrita/TemplateFileWithCache.html" class="link">Amrita::TemplateFileWithCache</a><br />
-Class <a href="Amrita/TemplateText.html" class="link">Amrita::TemplateText</a><br />
-
-</div>
-
-
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Class methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000026"></a>
-<b>def_tag</b>(tagname, *attrs_p)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 749</span>
- <span class="kw">def</span> klass::def_tag(tagname, *attrs_p)
- def_tag2(tagname, tagname, *attrs_p)
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000027"></a>
-<b>def_tag2</b>(methodname, tagname, *attrs_p)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 753</span>
- <span class="kw">def</span> klass::def_tag2(methodname, tagname, *attrs_p)
- methodname = methodname.id2name
- tagname = tagname.id2name
- attrs = attrs_p.collect { |a| a.id2name }
-
- <span class="kw">if</span> attrs.size &gt; 0
- param = attrs.collect { |a| &quot;#{a}=nil&quot; }.join(<span class="str">&quot;, &quot;</span>)
- param += <span class="str">&quot;,*args,&amp;block&quot;</span>
- method_body = &quot; e(:#{tagname}, &quot;
- method_body += attrs.collect { |a| &quot;A(:#{a}, #{a})&quot;}.join(<span class="str">&quot;, &quot;</span>)
- method_body += <span class="str">&quot;, *args, &amp;block)&quot;</span>
- <span class="kw">else</span>
- param = <span class="str">&quot;*args, &amp;block&quot;</span>
- method_body = &quot; e(:#{tagname}, *args, &amp;block) &quot;
- <span class="kw">end</span>
- a = &quot;def #{methodname}(#{param}) \n#{method_body}\nend\n&quot;
- <span class="cmt">#print a</span>
- eval a
- <span class="kw">end</span>
-</pre>
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Instance methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000020"></a>
-<b>convert</b>(s)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/xml.rb, line 15</span>
- <span class="kw">def</span> convert(s)
- Uconv::u8toeuc(s)
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000021"></a>
-<b>convert</b>(s)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/xml.rb, line 19</span>
- <span class="kw">def</span> convert(s)
- Uconv::u8tosjis(s)
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000022"></a>
-<b>convert</b>(s)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/xml.rb, line 23</span>
- <span class="kw">def</span> convert(s)
- s
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000023"></a>
-<b>convert</b>(s)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/xml.rb, line 28</span>
- <span class="kw">def</span> convert(s)
- s
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000024"></a>
-<b>e</b>(tagname, *attrs, &amp;block)
-</td></tr>
-</table>
-<div class="description">
-<dl>
-<dt>e(:hr)</dt><dd>&lt;hr&gt;
-
-</dd>
-<dt>e(:img src=&quot;a.png&quot;)</dt><dd>&lt;img src=&quot;a.png&quot;&gt;
-
-</dd>
-<dt>e(:p) { &quot;text&quot; }</dt><dd>&lt;p&gt;text&lt;/p&gt;
-
-</dd>
-<dt>e(:span :class=&gt;&quot;fotter&quot;) { &quot;bye&quot; } </dt><dd>&lt;span class=&quot;fotter&quot;&gt;bye&lt;/span&gt;
-
-</dd>
-</dl>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 698</span>
- <span class="kw">def</span> e(tagname, *attrs, &amp;block)
- Element.new(tagname, *attrs, &amp;block)
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000025"></a>
-<b>a</b>(*x, &amp;block)
-</td></tr>
-</table>
-<div class="description">
-<p>
-generate AttrArray object
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 706</span>
- <span class="kw">def</span> a(*x, &amp;block)
- <span class="kw">case</span> x.size
- <span class="kw">when</span> 1
- x = x[0]
- <span class="kw">case</span> x
- <span class="kw">when</span> Hash
- <span class="kw">when</span> String,Symbol
- x = Attr.new(x)
- <span class="kw">when</span> Attr
- <span class="kw">else</span>
- raise(TypeError, &quot;Not Attr,String or Symbol: #{x}&quot;)
- <span class="kw">end</span>
- AttrArray.new(x, &amp;block)
- <span class="kw">when</span> 0
- AttrArray.new([], &amp;block)
- <span class="kw">else</span>
- a = (0...x.size/2).collect <span class="kw">do</span> |i|
- Attr.new(x[i*2], x[i*2+1])
- <span class="kw">end</span>
- AttrArray.new(a, &amp;block)
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000028"></a>
-<b>format_inline</b>(data=true, &amp;block) {|| ...}
-</td></tr>
-</table>
-<div class="description">
-<p>
-format a Node object given as <tt>block</tt> in single line format.
-</p>
-<p>
-If <tt>data</tt> was given, <tt>expand</tt> will be called before
-formatting
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/format.rb, line 686</span>
- <span class="kw">def</span> format_inline(data=<span class="kw">true</span>, &amp;block)
- node = Node::to_node(<span class="kw">yield</span>)
- f = SingleLineFormatter.new
- f.format(node.expand1(data))
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000029"></a>
-<b>format_pretty</b>(data=true, &amp;block) {|| ...}
-</td></tr>
-</table>
-<div class="description">
-<p>
-pretty print a Node object given as <tt>block</tt>
-</p>
-<p>
-If <tt>data</tt> was given, <tt>expand</tt> will be called before
-formatting
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/format.rb, line 698</span>
- <span class="kw">def</span> format_pretty(data=<span class="kw">true</span>, &amp;block)
- node = Node::to_node(<span class="kw">yield</span>)
- f = PrettyPrintFormatter.new
- f.format(node.expand1(data))
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000030"></a>
-<b>noescape</b>(&amp;block)
-</td></tr>
-</table>
-<div class="description">
-<p>
-Usually the &lt;&gt; character in text will be escaped.
-</p>
-<pre>
- tmpl = TemplateText.new &quot;&lt;p id=x&gt;&lt;/p&gt;&quot;
- tmpl.expand(STDOUT, {:x =&gt; &quot;&lt;tag&gt;&quot;}) # =&gt; &lt;p&gt;&amp;lt;tag&amp;gt;&lt;/p&gt;
-</pre>
-<p>
-If the text was wrapped by this method, it will no be escaped.
-</p>
-<pre>
- tmpl.expand(STDOUT, {:x =&gt; noescape {&quot;&lt;tag&gt;&quot;}}) # =&gt; &lt;p&gt;&lt;tag&gt;&lt;/p&gt;
-</pre>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/format.rb, line 715</span>
- <span class="kw">def</span> noescape(&amp;block)
- Escape.new(<span class="kw">false</span>, &amp;block)
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000031"></a>
-<b>pre</b>(*attrs, &amp;block)
-</td></tr>
-</table>
-<div class="description">
-<p>
-If the text was wrapped by this method, spaces in it will be keeped.
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/format.rb, line 722</span>
- <span class="kw">def</span> pre(*attrs, &amp;block)
- Element.new(:pre, *attrs) { CompactSpace.new(<span class="kw">false</span>, &amp;block) }
- <span class="kw">end</span>
-</pre>
-
-</body>
View
120 docs/html/classes/Amrita/AmsHandler.html
@@ -1,120 +0,0 @@
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<html><head>
- <title>Class: Amrita::AmsHandler</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" />
- <script type="text/javascript" language="JavaScript">
- <!--
- function popCode(url) {
- window.open(url, "Code",
- "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- //-->
- </script>
-</head>
-
-<body bgcolor="white">
-
-<table summary="Information on class" width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <sup><font color="aqua">Class</font></sup> Amrita::AmsHandler
- </td>
- <td align="right">
- <table summary="layout" cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
- <a href="../../files/lib/amrita/handlers_rb.html" class="aqua">
-lib/amrita/handlers.rb
- </a>
-<br />
- </td>
- </tr>
- <tr>
- <td class="small-title-font">Parent:</td>
- <td class="small-title-font">
-Object
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
- <!-- banner header -->
-
-
-
-<div class="description"><p>
-a mod_ruby handler for amrita-script
-</p>
-</div>
-
-
-<table summary="Methods" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Methods</td></tr>
-</table>
-<div class="name-list">
-<a href="#M000116">handler</a>&nbsp; &nbsp;
-</div>
-
-
-
-<table summary="Included modules" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Included modules</td></tr>
-</table>
-<div class="name-list">
- <span class="method-name">Apache</span>
- <span class="method-name">Singleton</span>
-</div>
-
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Instance methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000116"></a>
-<b>handler</b>(r)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/handlers.rb, line 10</span>
- <span class="kw">def</span> handler(r)
- <span class="kw">if</span> r.method_number == M_OPTIONS
- r.allowed |= (1 &lt;&lt; M_GET)
- r.allowed |= (1 &lt;&lt; M_POST)
- <span class="kw">return</span> DECLINED
- <span class="kw">end</span>
- <span class="kw">if</span> r.finfo.mode == 0
- <span class="kw">return</span> NOT_FOUND
- <span class="kw">end</span>
- <span class="kw">if</span> r.allow_options &amp; OPT_EXECCGI == 0
- r.log_reason(<span class="str">&quot;Options ExecCGI is off in this directory&quot;</span>, r.filename)
- <span class="kw">return</span> FORBIDDEN
- <span class="kw">end</span>
- <span class="kw">unless</span> r.finfo.executable?
- r.log_reason(<span class="str">&quot;file permissions deny server execution&quot;</span>, r.filename)
- <span class="kw">return</span> FORBIDDEN
- <span class="kw">end</span>
- r.setup_cgi_env
- filename = r.filename.dup.untaint
- Apache.chdir_file(filename)
-
- $amrita_template_path = filename
-
- t = Amrita::AmsTemplate[filename]
- t.use_compiler = <span class="kw">true</span>
-
- r.content_type = <span class="str">&quot;text/html&quot;</span>
- r.send_http_header
- t.expand(r)
-
- <span class="kw">return</span> OK
- <span class="kw">end</span>
-</pre>
-
-</body>
View
227 docs/html/classes/Amrita/AmsTemplate.html
@@ -1,227 +0,0 @@
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<html><head>
- <title>Class: Amrita::AmsTemplate</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" />
- <script type="text/javascript" language="JavaScript">
- <!--
- function popCode(url) {
- window.open(url, "Code",
- "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- //-->
- </script>
-</head>
-
-<body bgcolor="white">
-
-<table summary="Information on class" width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <sup><font color="aqua">Class</font></sup> Amrita::AmsTemplate
- </td>
- <td align="right">
- <table summary="layout" cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
- <a href="../../files/lib/amrita/ams_rb.html" class="aqua">
-lib/amrita/ams.rb
- </a>
-<br />
- </td>
- </tr>
- <tr>
- <td class="small-title-font">Parent:</td>
- <td class="small-title-font">
- <a href="TemplateFile.html" class="aqua">
-TemplateFile
- </a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
- <!-- banner header -->
-
-
-
-
-
-<table summary="Methods" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Methods</td></tr>
-</table>
-<div class="name-list">
-<a href="#M000086">[]</a>&nbsp; &nbsp;
-<a href="#M000084">cache_path</a>&nbsp; &nbsp;
-<a href="#M000085">cache_valid?</a>&nbsp; &nbsp;
-<a href="#M000083">expand</a>&nbsp; &nbsp;
-<a href="#M000080">load_ams_template</a>&nbsp; &nbsp;
-<a href="#M000081">load_template</a>&nbsp; &nbsp;
-<a href="#M000082">setup_context</a>&nbsp; &nbsp;
-</div>
-
-
-
-
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Class methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000086"></a>
-<b>[]</b>(path)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/ams.rb, line 96</span>
- <span class="kw">def</span> AmsTemplate::[](path)
- ret = @@template_cache[path]
- <span class="kw">unless</span> ret
- @@template_cache[path] = ret = AmsTemplate.new(path)
- <span class="kw">end</span>
- ret
- <span class="kw">end</span>
-</pre>
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Instance methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000080"></a>
-<b>load_ams_template</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/ams.rb, line 11</span>
- <span class="kw">def</span> load_ams_template
- File.open(@path) <span class="kw">do</span> |f|
- @template_text = f.read
- <span class="kw">end</span>
- typ, script = <span class="kw">nil</span>, <span class="kw">nil</span>
- <span class="kw">case</span> @template_text
- <span class="kw">when</span> RScript1
- typ, script = $1, $2
- @template_text.gsub!( RScript1, <span class="str">&quot;&quot;</span>)
- <span class="kw">when</span> RScript2
- typ, script = <span class="str">&quot;eval&quot;</span>, $1
- @template_text.gsub!( RScript2, <span class="str">&quot;&quot;</span>)
- <span class="kw">else</span>
- <span class="cmt"># do nothing</span>
- <span class="kw">end</span>
-
- @ams_type = typ
- <span class="kw">case</span> @ams_type
- <span class="kw">when</span> <span class="str">&quot;eval&quot;</span>
- script = script.untaint
- @data = eval(script, TOPLEVEL_BINDING)
- <span class="kw">when</span> <span class="str">&quot;module&quot;</span>
- script = script.untaint
- cls = Class.new
- cls.module_eval script
- obj = cls.new
- obj.extend ExpandByMember
- @data = obj
- <span class="kw">when</span> <span class="str">&quot;yaml&quot;</span>
- require <span class="str">&quot;yaml&quot;</span>
- @data = YAML::load script
- <span class="kw">when</span> <span class="kw">nil</span>
- @data = Hash.new(<span class="kw">true</span>)
- <span class="kw">else</span>
- raise &quot;unknown script type #{typ}&quot;
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000081"></a>
-<b>load_template</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/ams.rb, line 49</span>
- <span class="kw">def</span> load_template
-
- @template = get_parser_class.parse_text(@template_text) <span class="kw">do</span> |e|
- <span class="kw">if</span> @parser_filter
- @parser_filter.call(e)
- <span class="kw">else</span>
- e
- <span class="kw">end</span>
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000082"></a>
-<b>setup_context</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/ams.rb, line 60</span>
- <span class="kw">def</span> setup_context
- context = <span class="kw">super</span>
- <span class="kw">if</span> @ams_type == <span class="str">&quot;yaml&quot;</span>
- context.hash_key_is_string = <span class="kw">true</span>
- context.expand_attr = <span class="kw">true</span>
- <span class="kw">end</span>
- context
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000083"></a>
-<b>expand</b>(stream)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/ams.rb, line 69</span>
- <span class="kw">def</span> expand(stream)
- load_ams_template
- <span class="kw">if</span> need_update?
- setup_template
- <span class="kw">end</span>
- context = setup_context
- formatter = setup_formatter(stream)
- do_expand(@data, context, formatter)
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000084"></a>
-<b>cache_path</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/ams.rb, line 80</span>
- <span class="kw">def</span> cache_path
- <span class="kw">if</span> @@cache_dir
- @@cache_dir + <span class="str">&quot;/&quot;</span> + File::basename(@path) + <span class="str">&quot;.amrita&quot;</span>
- <span class="kw">else</span>
- <span class="kw">nil</span>
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000085"></a>
-<b>cache_valid?</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/ams.rb, line 88</span>
- <span class="kw">def</span> cache_valid?
- <span class="kw">if</span> @@cache_dir <span class="kw">and</span> FileTest::readable?(cache_path)
- File::stat(@path).mtime &lt;= File::stat(cache_path).mtime
- <span class="kw">else</span>
- <span class="kw">false</span>
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-
-</body>
View
66 docs/html/classes/Amrita/AsIsFormatter.html
@@ -1,66 +0,0 @@
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<html><head>
- <title>Class: Amrita::AsIsFormatter</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" />
- <script type="text/javascript" language="JavaScript">
- <!--
- function popCode(url) {
- window.open(url, "Code",
- "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- //-->
- </script>
-</head>
-
-<body bgcolor="white">
-
-<table summary="Information on class" width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <sup><font color="aqua">Class</font></sup> Amrita::AsIsFormatter
- </td>
- <td align="right">
- <table summary="layout" cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
- <a href="../../files/lib/amrita/format_rb.html" class="aqua">
-lib/amrita/format.rb
- </a>
-<br />
- </td>
- </tr>
- <tr>
- <td class="small-title-font">Parent:</td>
- <td class="small-title-font">
- <a href="Formatter.html" class="aqua">
-Formatter
- </a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
- <!-- banner header -->
-
-
-
-<div class="description"><p>
-This <a href="Formatter.html">Formatter</a> print out template with no
-change.
-</p>
-</div>
-
-
-
-
-
-
-
-</body>
View
194 docs/html/classes/Amrita/Attr.html
@@ -1,194 +0,0 @@
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<html><head>
- <title>Class: Amrita::Attr</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" />
- <script type="text/javascript" language="JavaScript">
- <!--
- function popCode(url) {
- window.open(url, "Code",
- "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- //-->
- </script>
-</head>
-
-<body bgcolor="white">
-
-<table summary="Information on class" width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <sup><font color="aqua">Class</font></sup> Amrita::Attr
- </td>
- <td align="right">
- <table summary="layout" cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
- <a href="../../files/lib/amrita/node_rb.html" class="aqua">
-lib/amrita/node.rb
- </a>
-<br />
- </td>
- </tr>
- <tr>
- <td class="small-title-font">Parent:</td>
- <td class="small-title-font">
-Object
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
- <!-- banner header -->
-
-
-
-<div class="description"><p>
-represents a <tt>key</tt> <tt>value</tt> pair in HTML <a
-href="Element.html">Element</a>
-</p>
-</div>
-
-
-<table summary="Methods" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Methods</td></tr>
-</table>
-<div class="name-list">
-<a href="#M000154">==</a>&nbsp; &nbsp;
-<a href="#M000153">clone</a>&nbsp; &nbsp;
-<a href="#M000155">key</a>&nbsp; &nbsp;
-<a href="#M000156">key_symbol</a>&nbsp; &nbsp;
-<a href="#M000152">new</a>&nbsp; &nbsp;
-<a href="#M000157">to_ruby</a>&nbsp; &nbsp;
-</div>
-
-<table summary="Attributes" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Attributes</td></tr>
-</table>
-<table summary="Attribute details" cellspacing="5">
- <tr valign="top">
- <td class="attr-name">:value</td>
- <td align="center" class="attr-rw">&nbsp;[RW]&nbsp;</td>
- <td></td>
- </tr>
-</table>
-
-
-
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Class methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000152"></a>
-<b>new</b>(key, value=nil)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 31</span>
- <span class="kw">def</span> initialize(key, value=<span class="kw">nil</span>)
- @key = key.intern
- <span class="kw">case</span> value
- <span class="kw">when</span> <span class="kw">nil</span>
- @value = <span class="kw">nil</span>
- <span class="kw">when</span> String
- @value = value.frozen_copy
- <span class="kw">else</span>
- @value = value.to_s.freeze
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Instance methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000153"></a>
-<b>clone</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 43</span>
- <span class="kw">def</span> clone
- Attr.new(@key, @value)
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000154"></a>
-<b>==</b>(x)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 47</span>
- <span class="kw">def</span> ==(x)
- <span class="kw">return</span> <span class="kw">false</span> <span class="kw">unless</span> x.kind_of?(Attr)
- x.key_symbol == @key <span class="kw">and</span> x.value == @value
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000155"></a>
-<b>key</b>()
-</td></tr>
-</table>
-<div class="description">
-<p>
-return <tt>key</tt> as String
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 53</span>
- <span class="kw">def</span> key
- @key.id2name
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000156"></a>
-<b>key_symbol</b>()
-</td></tr>
-</table>
-<div class="description">
-<p>
-return <tt>key</tt> as Symbol
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 58</span>
- <span class="kw">def</span> key_symbol
- @key
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000157"></a>
-<b>to_ruby</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 62</span>
- <span class="kw">def</span> to_ruby
- <span class="kw">if</span> key =~ <span class="re">/^\w+$/</span>
- <span class="kw">if</span> value
- &quot;a(:#{key}, \&quot;#{value}\&quot;)&quot;
- <span class="kw">else</span>
- &quot;a(:#{key})&quot;
- <span class="kw">end</span>
- <span class="kw">else</span>
- <span class="kw">if</span> value
- &quot;a(\&quot;#{key}\&quot;, \&quot;#{value}\&quot;)&quot;
- <span class="kw">else</span>
- &quot;a(\&quot;#{key}\&quot;)&quot;
- <span class="kw">end</span>
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-
-</body>
View
339 docs/html/classes/Amrita/AttrArray.html
@@ -1,339 +0,0 @@
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<html><head>
- <title>Class: Amrita::AttrArray</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" />
- <script type="text/javascript" language="JavaScript">
- <!--
- function popCode(url) {
- window.open(url, "Code",
- "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- //-->
- </script>
-</head>
-
-<body bgcolor="white">
-
-<table summary="Information on class" width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <sup><font color="aqua">Class</font></sup> Amrita::AttrArray
- </td>
- <td align="right">
- <table summary="layout" cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
- <a href="../../files/lib/amrita/node_expand_rb.html" class="aqua">
-lib/amrita/node_expand.rb
- </a>
-<br />
- <a href="../../files/lib/amrita/node_rb.html" class="aqua">
-lib/amrita/node.rb
- </a>
-<br />
- <a href="../../files/lib/amrita/compiler_rb.html" class="aqua">
-lib/amrita/compiler.rb
- </a>
-<br />
- </td>
- </tr>
- <tr>
- <td class="small-title-font">Parent:</td>
- <td class="small-title-font">
-Object
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
- <!-- banner header -->
-
-
-
-<div class="description"><p>
-<a href="../Array.html">Array</a> of <a href="Attr.html">Attr</a> s. It can
-hold <tt>body</tt> part for using as a model data for Node#expand.
-Amrita#a() method is a shortcut for <a href="Attr.html">Attr</a>.new
-</p>
-</div>
-
-
-<table summary="Methods" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Methods</td></tr>
-</table>
-<div class="name-list">
-<a href="#M000091">&lt;&lt;</a>&nbsp; &nbsp;
-<a href="#M000089">==</a>&nbsp; &nbsp;
-<a href="#M000093">[]</a>&nbsp; &nbsp;
-<a href="#M000094">[]=</a>&nbsp; &nbsp;
-<a href="#M000087">amrita_expand_node</a>&nbsp; &nbsp;
-<a href="#M000098">amrita_generate_hint</a>&nbsp; &nbsp;
-<a href="#M000092">clear</a>&nbsp; &nbsp;
-<a href="#M000095">each</a>&nbsp; &nbsp;
-<a href="#M000090">inspect</a>&nbsp; &nbsp;
-<a href="#M000088">new</a>&nbsp; &nbsp;
-<a href="#M000096">size</a>&nbsp; &nbsp;
-<a href="#M000097">to_ruby</a>&nbsp; &nbsp;
-</div>
-
-<table summary="Attributes" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Attributes</td></tr>
-</table>
-<table summary="Attribute details" cellspacing="5">
- <tr valign="top">
- <td class="attr-name">:array</td>
- <td align="center" class="attr-rw">&nbsp;[R]&nbsp;</td>
- <td><p>
-If you call a() { ... }, block yields to <tt>body</tt>
-</p>
-</td>
- </tr>
- <tr valign="top">
- <td class="attr-name">:body</td>
- <td align="center" class="attr-rw">&nbsp;[R]&nbsp;</td>
- <td><p>
-If you call a() { ... }, block yields to <tt>body</tt>
-</p>
-</td>
- </tr>
- <tr valign="top">
- <td class="attr-name">:shared</td>
- <td align="center" class="attr-rw">&nbsp;[RW]&nbsp;</td>
- <td><p>
-internal use only, never touch it!
-</p>
-<p>
-true if this instance is shared by two or more elements
-</p>
-</td>
- </tr>
-</table>
-
-
-<table summary="Included modules" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Included modules</td></tr>
-</table>
-<div class="name-list">
- <span class="method-name">Enumerable</span>
-</div>
-
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Class methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000088"></a>
-<b>new</b>(*attrs, &amp;block) {|| ...}
-</td></tr>
-</table>
-<div class="description">
-<p>
-Don't use <a href="AttrArray.html">AttrArray</a>.new use a() instead
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 94</span>
- <span class="kw">def</span> initialize(*attrs, &amp;block)
- @array = []
- @shared = <span class="kw">false</span>
- attrs.each <span class="kw">do</span> |a|
- <span class="kw">case</span> a
- <span class="kw">when</span> Array, AttrArray
- a.each <span class="kw">do</span> |aa|
- <span class="kw">self</span> &lt;&lt; aa
- <span class="kw">end</span>
- <span class="kw">when</span> Hash
- attrs[0].each <span class="kw">do</span> |k, v|
- <span class="kw">self</span> &lt;&lt; Attr.new(k, v)
- <span class="kw">end</span>
- <span class="kw">else</span>
- <span class="kw">self</span> &lt;&lt; a
- <span class="kw">end</span>
- <span class="kw">end</span>
-
- <span class="kw">if</span> block_given?
- @body = <span class="kw">yield</span>
- <span class="kw">else</span>
- @body = Null
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Instance methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000087"></a>
-<b>amrita_expand_node</b>(n, context)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node_expand.rb, line 258</span>
- <span class="kw">def</span> amrita_expand_node(n, context)
- raise Amrita::ModelMisMatch(type, n.type)
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000089"></a>
-<b>==</b>(x)
-</td></tr>
-</table>
-<div class="description">
-<p>
-<a href="AttrArray.html">AttrArray</a>#== concerns the order of <a
-href="Attr.html">Attr</a>
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 120</span>
- <span class="kw">def</span> ==(x)
- <span class="kw">return</span> <span class="kw">true</span> <span class="kw">if</span> id == x.id
- <span class="kw">return</span> <span class="kw">false</span> <span class="kw">unless</span> x.kind_of?(AttrArray)
- each_with_index <span class="kw">do</span> |a, n|
- <span class="kw">return</span> <span class="kw">false</span> <span class="kw">unless</span> a == x[n]
- <span class="kw">end</span>
- <span class="kw">true</span>
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000090"></a>
-<b>inspect</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 129</span>
- <span class="kw">def</span> inspect
- to_ruby
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000091"></a>
-<b>&lt;&lt;</b>(a)
-</td></tr>
-</table>
-<div class="description">
-<p>
-add an <a href="Attr.html">Attr</a>
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 134</span>
- <span class="kw">def</span> &lt;&lt;(a)
- raise &quot;must be Attr not #{a.class}&quot; <span class="kw">unless</span> a.kind_of?(Attr)
- @array &lt;&lt; a
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000092"></a>
-<b>clear</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 139</span>
- <span class="kw">def</span> clear
- @array.clear
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000093"></a>
-<b>[]</b>(index)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 143</span>
- <span class="kw">def</span> [](index)
- @array[index]
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000094"></a>
-<b>[]=</b>(index, val)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 147</span>
- <span class="kw">def</span> []=(index, val)
- @array[index] = val
- val
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000095"></a>
-<b>each</b>(&amp;block)
-</td></tr>
-</table>
-<div class="description">
-<p>
-iterate on each <a href="Attr.html">Attr</a>
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 153</span>
- <span class="kw">def</span> each(&amp;block)
- @array.each(&amp;block)
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000096"></a>
-<b>size</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 157</span>
- <span class="kw">def</span> size
- @array.size
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000097"></a>
-<b>to_ruby</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 161</span>
- <span class="kw">def</span> to_ruby
- ret = <span class="str">&quot;a(&quot;</span> + @array.collect {|a| &quot;:#{a.key}, #{a.value}&quot;}.join(<span class="str">&quot;, &quot;</span>) + <span class="str">&quot;)&quot;</span>
- <span class="kw">case</span> @body
- <span class="kw">when</span> <span class="kw">nil</span>, Null
- <span class="kw">when</span> Node
- ret += body.to_ruby
- <span class="kw">else</span>
- ret += body.inspect
- <span class="kw">end</span>
- ret
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000098"></a>
-<b>amrita_generate_hint</b>()
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/compiler.rb, line 58</span>
- <span class="kw">def</span> amrita_generate_hint
- <span class="kw">if</span> body
- Amrita::HtmlCompiler::AttrData[body.amrita_generate_hint]
- <span class="kw">else</span>
- Amrita::HtmlCompiler::AttrData.new
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-
-</body>
View
97 docs/html/classes/Amrita/CacheManager.html
@@ -1,97 +0,0 @@
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<html><head>
- <title>Module: Amrita::CacheManager</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" />
- <script type="text/javascript" language="JavaScript">
- <!--
- function popCode(url) {
- window.open(url, "Code",
- "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- //-->
- </script>
-</head>
-
-<body bgcolor="white">
-
-<table summary="Information on class" width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <sup><font color="aqua">Module</font></sup> Amrita::CacheManager
- </td>
- <td align="right">
- <table summary="layout" cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
- <a href="../../files/lib/amrita/template_rb.html" class="aqua">
-lib/amrita/template.rb
- </a>
-<br />
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
- <!-- banner header -->
-
-
-
-
-
-<table summary="Methods" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Methods</td></tr>
-</table>
-<div class="name-list">
-<a href="#M000054">cache</a>&nbsp; &nbsp;
-<a href="#M000055">valid_item?</a>&nbsp; &nbsp;
-</div>
-
-
-
-
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Instance methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000054"></a>
-<b>cache</b>(filename, typ, source_mtime=nil, key=nil, &amp;block) {|| ...}
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/template.rb, line 12</span>
- <span class="kw">def</span> cache(filename, typ, source_mtime=<span class="kw">nil</span>, key=<span class="kw">nil</span>, &amp;block)
- source_mtime = Time.new <span class="kw">unless</span> source_mtime
- item = get_item(typ, filename, key) || Item.new
- <span class="kw">unless</span> valid_item?(item, source_mtime)
- item.filename = filename
- item.type = typ
- item.key = key
- item.mtime = source_mtime
- item.contents = <span class="kw">yield</span>
- save_item(item)
- <span class="kw">end</span>
- item.contents
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000055"></a>
-<b>valid_item?</b>(item, source_mtime)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/template.rb, line 26</span>
- <span class="kw">def</span> valid_item?(item, source_mtime)
- item.mtime &amp;&amp; source_mtime &amp;&amp; item.mtime &gt;= source_mtime
- <span class="kw">end</span>
-</pre>
-
-</body>
View
99 docs/html/classes/Amrita/DummyCacheManager.html
@@ -1,99 +0,0 @@
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<html><head>
- <title>Class: Amrita::DummyCacheManager</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" />
- <script type="text/javascript" language="JavaScript">
- <!--
- function popCode(url) {
- window.open(url, "Code",
- "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- //-->
- </script>
-</head>
-
-<body bgcolor="white">
-
-<table summary="Information on class" width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <sup><font color="aqua">Class</font></sup> Amrita::DummyCacheManager
- </td>
- <td align="right">
- <table summary="layout" cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
- <a href="../../files/lib/amrita/template_rb.html" class="aqua">
-lib/amrita/template.rb
- </a>
-<br />
- </td>
- </tr>
- <tr>
- <td class="small-title-font">Parent:</td>
- <td class="small-title-font">
-Object
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
- <!-- banner header -->
-
-
-
-
-
-<table summary="Methods" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Methods</td></tr>
-</table>
-<div class="name-list">
-<a href="#M000179">get_item</a>&nbsp; &nbsp;
-<a href="#M000180">save_item</a>&nbsp; &nbsp;
-</div>
-
-
-
-<table summary="Included modules" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Included modules</td></tr>
-</table>
-<div class="name-list">
- <span class="method-name">CacheManager</span>
-</div>
-
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Instance methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000179"></a>
-<b>get_item</b>(typ, filename, key)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/template.rb, line 34</span>
- <span class="kw">def</span> get_item(typ, filename, key)
- <span class="kw">nil</span>
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000180"></a>
-<b>save_item</b>(item)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/template.rb, line 38</span>
- <span class="kw">def</span> save_item(item)
- <span class="cmt"># do nothing because it's dummy</span>
- <span class="kw">end</span>
-</pre>
-
-</body>
View
547 docs/html/classes/Amrita/Element.html
@@ -1,547 +0,0 @@
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<html><head>
- <title>Class: Amrita::Element</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" />
- <script type="text/javascript" language="JavaScript">
- <!--
- function popCode(url) {
- window.open(url, "Code",
- "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- //-->
- </script>
-</head>
-
-<body bgcolor="white">
-
-<table summary="Information on class" width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <sup><font color="aqua">Class</font></sup> Amrita::Element
- </td>
- <td align="right">
- <table summary="layout" cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
- <a href="../../files/lib/amrita/node_expand_rb.html" class="aqua">
-lib/amrita/node_expand.rb
- </a>
-<br />
- <a href="../../files/lib/amrita/node_rb.html" class="aqua">
-lib/amrita/node.rb
- </a>
-<br />
- <a href="../../files/lib/amrita/format_rb.html" class="aqua">
-lib/amrita/format.rb
- </a>
-<br />
- <a href="../../files/lib/amrita/compiler_rb.html" class="aqua">
-lib/amrita/compiler.rb
- </a>
-<br />
- </td>
- </tr>
- <tr>
- <td class="small-title-font">Parent:</td>
- <td class="small-title-font">
-Object
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
- <!-- banner header -->
-
-
-
-<div class="description"><p>
-represents HTML element
-</p>
-</div>
-
-
-<table summary="Methods" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Methods</td></tr>
-</table>
-<div class="name-list">
-<a href="#M000198">&lt;&lt;</a>&nbsp; &nbsp;
-<a href="#M000189">==</a>&nbsp; &nbsp;
-<a href="#M000200">[]</a>&nbsp; &nbsp;
-<a href="#M000201">[]=</a>&nbsp; &nbsp;
-<a href="#M000187">apply_to_children</a>&nbsp; &nbsp;
-<a href="#M000191">clone</a>&nbsp; &nbsp;
-<a href="#M000202">delete_attr!</a>&nbsp; &nbsp;
-<a href="#M000204">each_element_with_id</a>&nbsp; &nbsp;
-<a href="#M000194">hid</a>&nbsp; &nbsp;
-<a href="#M000195">hide_hid!</a>&nbsp; &nbsp;
-<a href="#M000199">include_attr?</a>&nbsp; &nbsp;
-<a href="#M000188">new</a>&nbsp; &nbsp;
-<a href="#M000197">put_attr</a>&nbsp; &nbsp;
-<a href="#M000190">set_tag</a>&nbsp; &nbsp;
-<a href="#M000205">set_text</a>&nbsp; &nbsp;
-<a href="#M000196">tagclass</a>&nbsp; &nbsp;
-<a href="#M000192">tagname</a>&nbsp; &nbsp;
-<a href="#M000193">tagname_symbol</a>&nbsp; &nbsp;
-<a href="#M000203">to_ruby</a>&nbsp; &nbsp;
-</div>
-
-<table summary="Attributes" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Attributes</td></tr>
-</table>
-<table summary="Attribute details" cellspacing="5">
- <tr valign="top">
- <td class="attr-name">:attrs</td>
- <td align="center" class="attr-rw">&nbsp;[R]&nbsp;</td>
- <td><p>
-return attributes as <a href="AttrArray.html">AttrArray</a>
-</p>
-<p>
-CAUTION! never edit result of this method. use []= instead. because it may
-be shared by other Elements.
-</p>
-</td>
- </tr>
- <tr valign="top">
- <td class="attr-name">:attrs_hash</td>
- <td align="center" class="attr-rw">&nbsp;[R]&nbsp;</td>
- <td><p>
-CAUTION! internal use only
-</p>
-</td>
- </tr>
- <tr valign="top">
- <td class="attr-name">:body</td>
- <td align="center" class="attr-rw">&nbsp;[R]&nbsp;</td>
- <td><p>
-return body
-</p>
-</td>
- </tr>
- <tr valign="top">
- <td class="attr-name">:hide_hid</td>
- <td align="center" class="attr-rw">&nbsp;[R]&nbsp;</td>
- <td><p>
-CAUTION! internal use only
-</p>
-</td>
- </tr>
-</table>
-
-
-<table summary="Included modules" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Included modules</td></tr>
-</table>
-<div class="name-list">
- <span class="method-name">Node</span>
-</div>
-
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Class methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000188"></a>
-<b>new</b>(tagname_or_element, *a, &amp;block)
-</td></tr>
-</table>
-<div class="description">
-<p>
-Don't use <a href="Element.html">Element</a>.new. Use Amrita#e instead.
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 340</span>
- <span class="kw">def</span> initialize(tagname_or_element, *a, &amp;block)
- <span class="kw">case</span> tagname_or_element
- <span class="kw">when</span> Element
- @tagname = tagname_or_element.tagname_symbol
- @attrs = tagname_or_element.attrs
- @attrs.shared = <span class="kw">true</span>
- @attrs_hash = tagname_or_element.attrs_hash
- @hide_hid = tagname_or_element.hide_hid
- <span class="kw">if</span> block_given?
- init_body(&amp;block)
- <span class="kw">else</span>
- @body = tagname_or_element.body.clone
- <span class="kw">end</span>
- <span class="kw">when</span> Symbol, String
- set_tag(tagname_or_element)
- @attrs = AttrArray.new
- @attrs_hash = {}
- @hide_hid = <span class="kw">false</span>
- <span class="kw">if</span> a.size() == 1 <span class="kw">and</span> a.kind_of?(AttrArray)
- @attrs = a
- @attrs.shared = <span class="kw">true</span>
- @attrs.each <span class="kw">do</span> |a|
- @attrs_hash[a.key_symbol] = a
- <span class="kw">end</span>
- <span class="kw">else</span>
- a.each { |aa| put_attr(aa) }
- <span class="kw">end</span>
- <span class="kw">if</span> block_given?
- init_body(&amp;block)
- <span class="kw">else</span>
- @body = Null
- <span class="kw">end</span>
- <span class="kw">end</span>
- <span class="kw">end</span>
-</pre>
-<table summary="Method list" cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Public Instance methods</td></tr>
-</table>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000187"></a>
-<b>apply_to_children</b>(&amp;block) {|body| ...}
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node_expand.rb, line 336</span>
- <span class="kw">def</span> apply_to_children(&amp;block)
- clone { <span class="kw">yield</span>(body) }
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000189"></a>
-<b>==</b>(x)
-</td></tr>
-</table>
-<div class="description">
-<p>
-test if tagname and attributes and body are equal to self. doesn't concern
-the order of attributes
-</p>
-</div>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 377</span>
- <span class="kw">def</span> ==(x)
- <span class="kw">return</span> <span class="kw">false</span> <span class="kw">unless</span> x.kind_of?(Element)
- <span class="kw">return</span> <span class="kw">true</span> <span class="kw">if</span> x.id == id
- <span class="kw">return</span> <span class="kw">false</span> <span class="kw">unless</span> x.tagname_symbol == @tagname
- <span class="kw">return</span> <span class="kw">false</span> <span class="kw">unless</span> x.attrs.size == @attrs.size
- @attrs.each <span class="kw">do</span> |a|
- <span class="kw">return</span> <span class="kw">false</span> <span class="kw">unless</span> x[a.key] == a.value
- <span class="kw">end</span>
- <span class="kw">return</span> <span class="kw">false</span> <span class="kw">unless</span> x.body == @body
- <span class="kw">true</span>
- <span class="kw">end</span>
-</pre>
-<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="M000190"></a>
-<b>set_tag</b>(tagname)
-</td></tr>
-</table>
-<pre class="source">
-<span class="cmt"># File lib/amrita/node.rb, line 389</span>
- <span class="kw">def</span> set_tag(tagname)
- <span class="kw">if</span> tagname
- @tagname = tagname.intern
- <span class="kw">else</span>
- @tagname = <span class="kw">nil</span>
- <span class="kw">end</