kwartz 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +340 -0
- data/ChangeLog +103 -0
- data/README.txt +37 -0
- data/bin/kwartz +12 -0
- data/doc-api/classes/Kwartz.html +218 -0
- data/doc-api/classes/Kwartz/Assertion.html +140 -0
- data/doc-api/classes/Kwartz/AssertionError.html +148 -0
- data/doc-api/classes/Kwartz/AttrInfo.html +320 -0
- data/doc-api/classes/Kwartz/BaseError.html +206 -0
- data/doc-api/classes/Kwartz/BaseTranslator.html +331 -0
- data/doc-api/classes/Kwartz/CharacterType.html +212 -0
- data/doc-api/classes/Kwartz/CommandOptionError.html +154 -0
- data/doc-api/classes/Kwartz/CommandOptions.html +374 -0
- data/doc-api/classes/Kwartz/Config.html +150 -0
- data/doc-api/classes/Kwartz/ConvertError.html +191 -0
- data/doc-api/classes/Kwartz/Converter.html +252 -0
- data/doc-api/classes/Kwartz/CssStyleParser.html +483 -0
- data/doc-api/classes/Kwartz/DocumentRuleset.html +369 -0
- data/doc-api/classes/Kwartz/ElementExpander.html +325 -0
- data/doc-api/classes/Kwartz/ElementInfo.html +312 -0
- data/doc-api/classes/Kwartz/ElementRuleset.html +582 -0
- data/doc-api/classes/Kwartz/EperlHandler.html +338 -0
- data/doc-api/classes/Kwartz/EperlTranslator.html +167 -0
- data/doc-api/classes/Kwartz/ErubisHandler.html +113 -0
- data/doc-api/classes/Kwartz/ErubisTranslator.html +168 -0
- data/doc-api/classes/Kwartz/ErubyHandler.html +337 -0
- data/doc-api/classes/Kwartz/ErubyTranslator.html +167 -0
- data/doc-api/classes/Kwartz/ExpandStatement.html +227 -0
- data/doc-api/classes/Kwartz/Expression.html +119 -0
- data/doc-api/classes/Kwartz/Handler.html +558 -0
- data/doc-api/classes/Kwartz/JstlHandler.html +657 -0
- data/doc-api/classes/Kwartz/JstlTranslator.html +226 -0
- data/doc-api/classes/Kwartz/KwartzError.html +146 -0
- data/doc-api/classes/Kwartz/Main.html +384 -0
- data/doc-api/classes/Kwartz/NativeExpression.html +236 -0
- data/doc-api/classes/Kwartz/NativeStatement.html +254 -0
- data/doc-api/classes/Kwartz/Node.html +156 -0
- data/doc-api/classes/Kwartz/ParseError.html +148 -0
- data/doc-api/classes/Kwartz/PhpHandler.html +333 -0
- data/doc-api/classes/Kwartz/PhpTranslator.html +194 -0
- data/doc-api/classes/Kwartz/PresentationLogicParser.html +830 -0
- data/doc-api/classes/Kwartz/PrintStatement.html +221 -0
- data/doc-api/classes/Kwartz/RailsHandler.html +587 -0
- data/doc-api/classes/Kwartz/RailsTranslator.html +167 -0
- data/doc-api/classes/Kwartz/RubyStyleParser.html +558 -0
- data/doc-api/classes/Kwartz/Ruleset.html +117 -0
- data/doc-api/classes/Kwartz/Statement.html +119 -0
- data/doc-api/classes/Kwartz/StrutsTranslator.html +190 -0
- data/doc-api/classes/Kwartz/TagInfo.html +314 -0
- data/doc-api/classes/Kwartz/TextConverter.html +270 -0
- data/doc-api/classes/Kwartz/Translator.html +318 -0
- data/doc-api/classes/Test.html +107 -0
- data/doc-api/classes/Test/Unit.html +101 -0
- data/doc-api/created.rid +1 -0
- data/doc-api/files/__/README_txt.html +150 -0
- data/doc-api/files/kwartz/assert_rb.html +114 -0
- data/doc-api/files/kwartz/binding/eperl_rb.html +116 -0
- data/doc-api/files/kwartz/binding/erubis_rb.html +116 -0
- data/doc-api/files/kwartz/binding/eruby_rb.html +115 -0
- data/doc-api/files/kwartz/binding/jstl_rb.html +116 -0
- data/doc-api/files/kwartz/binding/php_rb.html +116 -0
- data/doc-api/files/kwartz/binding/rails_rb.html +115 -0
- data/doc-api/files/kwartz/binding/struts_rb.html +117 -0
- data/doc-api/files/kwartz/config_rb.html +107 -0
- data/doc-api/files/kwartz/converter_rb.html +119 -0
- data/doc-api/files/kwartz/error_rb.html +107 -0
- data/doc-api/files/kwartz/main_rb.html +124 -0
- data/doc-api/files/kwartz/node_rb.html +114 -0
- data/doc-api/files/kwartz/parser_rb.html +117 -0
- data/doc-api/files/kwartz/translator_rb.html +115 -0
- data/doc-api/files/kwartz/util/assert-text-equal_rb.html +115 -0
- data/doc-api/files/kwartz/util/testcase-helper_rb.html +115 -0
- data/doc-api/files/kwartz_rb.html +120 -0
- data/doc-api/fr_class_index.html +75 -0
- data/doc-api/fr_file_index.html +45 -0
- data/doc-api/fr_method_index.html +216 -0
- data/doc-api/index.html +24 -0
- data/doc-api/rdoc-style.css +208 -0
- data/doc/docstyle.css +188 -0
- data/doc/p-pattern.html +1207 -0
- data/doc/reference.html +3396 -0
- data/doc/users-guide.html +1670 -0
- data/examples/breadcrumbs1/Makefile +15 -0
- data/examples/breadcrumbs1/breadcrumbs.eruby.plogic +27 -0
- data/examples/breadcrumbs1/breadcrumbs.html +12 -0
- data/examples/breadcrumbs1/breadcrumbs.jstl.plogic +28 -0
- data/examples/breadcrumbs1/breadcrumbs.php.plogic +26 -0
- data/examples/breadcrumbs1/main.php +12 -0
- data/examples/breadcrumbs1/main.rb +12 -0
- data/examples/breadcrumbs2/Makefile +15 -0
- data/examples/breadcrumbs2/breadcrumbs.eruby.plogic +22 -0
- data/examples/breadcrumbs2/breadcrumbs.html +14 -0
- data/examples/breadcrumbs2/breadcrumbs.jstl.plogic +24 -0
- data/examples/breadcrumbs2/breadcrumbs.php.plogic +23 -0
- data/examples/breadcrumbs2/main.php +12 -0
- data/examples/breadcrumbs2/main.rb +12 -0
- data/examples/pagelayout/Makefile +47 -0
- data/examples/pagelayout/content.eruby.plogic +44 -0
- data/examples/pagelayout/content.jstl.plogic +36 -0
- data/examples/pagelayout/content.php.plogic +37 -0
- data/examples/pagelayout/content1.html +36 -0
- data/examples/pagelayout/content2.html +29 -0
- data/examples/pagelayout/design.css +40 -0
- data/examples/pagelayout/layout.html +50 -0
- data/examples/pagelayout/main.php +55 -0
- data/examples/pagelayout/main.rb +77 -0
- data/examples/pagelayout/menu.eruby.plogic +14 -0
- data/examples/pagelayout/menu.html +13 -0
- data/examples/pagelayout/menu.jstl.plogic +14 -0
- data/examples/pagelayout/menu.php.plogic +14 -0
- data/examples/rails1/Makefile +36 -0
- data/examples/rails1/README +19 -0
- data/examples/rails1/application_helper.rb +31 -0
- data/examples/rails1/edit.html +28 -0
- data/examples/rails1/edit.plogic +10 -0
- data/examples/rails1/form.html +52 -0
- data/examples/rails1/form.plogic +33 -0
- data/examples/rails1/layout.plogic +15 -0
- data/examples/rails1/link_to.plogic +19 -0
- data/examples/rails1/list.html +48 -0
- data/examples/rails1/list.plogic +28 -0
- data/examples/rails1/new.html +27 -0
- data/examples/rails1/new.plogic +10 -0
- data/examples/rails1/reader.plogic +29 -0
- data/examples/rails1/show.html +40 -0
- data/examples/rails1/show.plogic +4 -0
- data/examples/rails1/writer.plogic +8 -0
- data/examples/table1/Makefile +15 -0
- data/examples/table1/main.php +11 -0
- data/examples/table1/main.rb +11 -0
- data/examples/table1/table1.eruby.plogic +21 -0
- data/examples/table1/table1.html +16 -0
- data/examples/table1/table1.jstl.plogic +21 -0
- data/examples/table1/table1.php.plogic +22 -0
- data/kwartz.gemspec +55 -0
- data/lib/kwartz.rb +13 -0
- data/lib/kwartz/assert.rb +31 -0
- data/lib/kwartz/binding/eperl.rb +166 -0
- data/lib/kwartz/binding/erubis.rb +61 -0
- data/lib/kwartz/binding/eruby.rb +164 -0
- data/lib/kwartz/binding/jstl.rb +334 -0
- data/lib/kwartz/binding/php.rb +167 -0
- data/lib/kwartz/binding/rails.rb +295 -0
- data/lib/kwartz/binding/struts.rb +109 -0
- data/lib/kwartz/config.rb +28 -0
- data/lib/kwartz/converter.rb +920 -0
- data/lib/kwartz/error.rb +41 -0
- data/lib/kwartz/main.rb +464 -0
- data/lib/kwartz/node.rb +454 -0
- data/lib/kwartz/parser.rb +903 -0
- data/lib/kwartz/translator.rb +153 -0
- data/lib/kwartz/util/assert-text-equal.rb +44 -0
- data/lib/kwartz/util/testcase-helper.rb +112 -0
- data/setup.rb +1331 -0
- data/test/test-compile.rb +36 -0
- data/test/test-compile.yaml +178 -0
- data/test/test-converter.rb +34 -0
- data/test/test-converter.yaml +127 -0
- data/test/test-directives.rb +32 -0
- data/test/test-directives.yaml +1411 -0
- data/test/test-main.rb +464 -0
- data/test/test-parser.rb +54 -0
- data/test/test-parser.yaml +394 -0
- data/test/test-rails.rb +28 -0
- data/test/test-rails.yaml +301 -0
- data/test/test-ruleset.rb +36 -0
- data/test/test-ruleset.yaml +804 -0
- data/test/test.rb +44 -0
- metadata +236 -0
data/bin/kwartz
ADDED
@@ -0,0 +1,218 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Module: Kwartz</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">Kwartz</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/kwartz/assert_rb.html">
|
59
|
+
kwartz/assert.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
<a href="../files/kwartz/binding/eperl_rb.html">
|
63
|
+
kwartz/binding/eperl.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
<a href="../files/kwartz/binding/erubis_rb.html">
|
67
|
+
kwartz/binding/erubis.rb
|
68
|
+
</a>
|
69
|
+
<br />
|
70
|
+
<a href="../files/kwartz/binding/eruby_rb.html">
|
71
|
+
kwartz/binding/eruby.rb
|
72
|
+
</a>
|
73
|
+
<br />
|
74
|
+
<a href="../files/kwartz/binding/jstl_rb.html">
|
75
|
+
kwartz/binding/jstl.rb
|
76
|
+
</a>
|
77
|
+
<br />
|
78
|
+
<a href="../files/kwartz/binding/php_rb.html">
|
79
|
+
kwartz/binding/php.rb
|
80
|
+
</a>
|
81
|
+
<br />
|
82
|
+
<a href="../files/kwartz/binding/rails_rb.html">
|
83
|
+
kwartz/binding/rails.rb
|
84
|
+
</a>
|
85
|
+
<br />
|
86
|
+
<a href="../files/kwartz/binding/struts_rb.html">
|
87
|
+
kwartz/binding/struts.rb
|
88
|
+
</a>
|
89
|
+
<br />
|
90
|
+
<a href="../files/kwartz/config_rb.html">
|
91
|
+
kwartz/config.rb
|
92
|
+
</a>
|
93
|
+
<br />
|
94
|
+
<a href="../files/kwartz/converter_rb.html">
|
95
|
+
kwartz/converter.rb
|
96
|
+
</a>
|
97
|
+
<br />
|
98
|
+
<a href="../files/kwartz/error_rb.html">
|
99
|
+
kwartz/error.rb
|
100
|
+
</a>
|
101
|
+
<br />
|
102
|
+
<a href="../files/kwartz/main_rb.html">
|
103
|
+
kwartz/main.rb
|
104
|
+
</a>
|
105
|
+
<br />
|
106
|
+
<a href="../files/kwartz/node_rb.html">
|
107
|
+
kwartz/node.rb
|
108
|
+
</a>
|
109
|
+
<br />
|
110
|
+
<a href="../files/kwartz/parser_rb.html">
|
111
|
+
kwartz/parser.rb
|
112
|
+
</a>
|
113
|
+
<br />
|
114
|
+
<a href="../files/kwartz/translator_rb.html">
|
115
|
+
kwartz/translator.rb
|
116
|
+
</a>
|
117
|
+
<br />
|
118
|
+
</td>
|
119
|
+
</tr>
|
120
|
+
|
121
|
+
</table>
|
122
|
+
</div>
|
123
|
+
<!-- banner header -->
|
124
|
+
|
125
|
+
<div id="bodyContent">
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<div id="contextContent">
|
130
|
+
|
131
|
+
<div id="description">
|
132
|
+
<p>
|
133
|
+
$Rev: 112 $ $Release: 3.0.0 $ copyright(c) 2004-2006 kuwata-lab.com all rights reserved
|
134
|
+
</p>
|
135
|
+
|
136
|
+
</div>
|
137
|
+
|
138
|
+
|
139
|
+
</div>
|
140
|
+
|
141
|
+
|
142
|
+
</div>
|
143
|
+
|
144
|
+
|
145
|
+
<!-- if includes -->
|
146
|
+
|
147
|
+
<div id="section">
|
148
|
+
|
149
|
+
<div id="class-list">
|
150
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
151
|
+
|
152
|
+
Module <a href="Kwartz/Assertion.html" class="link">Kwartz::Assertion</a><br />
|
153
|
+
Module <a href="Kwartz/CharacterType.html" class="link">Kwartz::CharacterType</a><br />
|
154
|
+
Module <a href="Kwartz/Config.html" class="link">Kwartz::Config</a><br />
|
155
|
+
Module <a href="Kwartz/ElementExpander.html" class="link">Kwartz::ElementExpander</a><br />
|
156
|
+
Class <a href="Kwartz/AssertionError.html" class="link">Kwartz::AssertionError</a><br />
|
157
|
+
Class <a href="Kwartz/AttrInfo.html" class="link">Kwartz::AttrInfo</a><br />
|
158
|
+
Class <a href="Kwartz/BaseError.html" class="link">Kwartz::BaseError</a><br />
|
159
|
+
Class <a href="Kwartz/BaseTranslator.html" class="link">Kwartz::BaseTranslator</a><br />
|
160
|
+
Class <a href="Kwartz/CommandOptionError.html" class="link">Kwartz::CommandOptionError</a><br />
|
161
|
+
Class <a href="Kwartz/CommandOptions.html" class="link">Kwartz::CommandOptions</a><br />
|
162
|
+
Class <a href="Kwartz/ConvertError.html" class="link">Kwartz::ConvertError</a><br />
|
163
|
+
Class <a href="Kwartz/Converter.html" class="link">Kwartz::Converter</a><br />
|
164
|
+
Class <a href="Kwartz/CssStyleParser.html" class="link">Kwartz::CssStyleParser</a><br />
|
165
|
+
Class <a href="Kwartz/DocumentRuleset.html" class="link">Kwartz::DocumentRuleset</a><br />
|
166
|
+
Class <a href="Kwartz/ElementInfo.html" class="link">Kwartz::ElementInfo</a><br />
|
167
|
+
Class <a href="Kwartz/ElementRuleset.html" class="link">Kwartz::ElementRuleset</a><br />
|
168
|
+
Class <a href="Kwartz/EperlHandler.html" class="link">Kwartz::EperlHandler</a><br />
|
169
|
+
Class <a href="Kwartz/EperlTranslator.html" class="link">Kwartz::EperlTranslator</a><br />
|
170
|
+
Class <a href="Kwartz/ErubisHandler.html" class="link">Kwartz::ErubisHandler</a><br />
|
171
|
+
Class <a href="Kwartz/ErubisTranslator.html" class="link">Kwartz::ErubisTranslator</a><br />
|
172
|
+
Class <a href="Kwartz/ErubyHandler.html" class="link">Kwartz::ErubyHandler</a><br />
|
173
|
+
Class <a href="Kwartz/ErubyTranslator.html" class="link">Kwartz::ErubyTranslator</a><br />
|
174
|
+
Class <a href="Kwartz/ExpandStatement.html" class="link">Kwartz::ExpandStatement</a><br />
|
175
|
+
Class <a href="Kwartz/Expression.html" class="link">Kwartz::Expression</a><br />
|
176
|
+
Class <a href="Kwartz/Handler.html" class="link">Kwartz::Handler</a><br />
|
177
|
+
Class <a href="Kwartz/JstlHandler.html" class="link">Kwartz::JstlHandler</a><br />
|
178
|
+
Class <a href="Kwartz/JstlTranslator.html" class="link">Kwartz::JstlTranslator</a><br />
|
179
|
+
Class <a href="Kwartz/KwartzError.html" class="link">Kwartz::KwartzError</a><br />
|
180
|
+
Class <a href="Kwartz/Main.html" class="link">Kwartz::Main</a><br />
|
181
|
+
Class <a href="Kwartz/NativeExpression.html" class="link">Kwartz::NativeExpression</a><br />
|
182
|
+
Class <a href="Kwartz/NativeStatement.html" class="link">Kwartz::NativeStatement</a><br />
|
183
|
+
Class <a href="Kwartz/Node.html" class="link">Kwartz::Node</a><br />
|
184
|
+
Class <a href="Kwartz/ParseError.html" class="link">Kwartz::ParseError</a><br />
|
185
|
+
Class <a href="Kwartz/PhpHandler.html" class="link">Kwartz::PhpHandler</a><br />
|
186
|
+
Class <a href="Kwartz/PhpTranslator.html" class="link">Kwartz::PhpTranslator</a><br />
|
187
|
+
Class <a href="Kwartz/PresentationLogicParser.html" class="link">Kwartz::PresentationLogicParser</a><br />
|
188
|
+
Class <a href="Kwartz/PrintStatement.html" class="link">Kwartz::PrintStatement</a><br />
|
189
|
+
Class <a href="Kwartz/RailsHandler.html" class="link">Kwartz::RailsHandler</a><br />
|
190
|
+
Class <a href="Kwartz/RailsTranslator.html" class="link">Kwartz::RailsTranslator</a><br />
|
191
|
+
Class <a href="Kwartz/RubyStyleParser.html" class="link">Kwartz::RubyStyleParser</a><br />
|
192
|
+
Class <a href="Kwartz/Ruleset.html" class="link">Kwartz::Ruleset</a><br />
|
193
|
+
Class <a href="Kwartz/Statement.html" class="link">Kwartz::Statement</a><br />
|
194
|
+
Class <a href="Kwartz/StrutsTranslator.html" class="link">Kwartz::StrutsTranslator</a><br />
|
195
|
+
Class <a href="Kwartz/TagInfo.html" class="link">Kwartz::TagInfo</a><br />
|
196
|
+
Class <a href="Kwartz/TextConverter.html" class="link">Kwartz::TextConverter</a><br />
|
197
|
+
Class <a href="Kwartz/Translator.html" class="link">Kwartz::Translator</a><br />
|
198
|
+
|
199
|
+
</div>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
<!-- if method_list -->
|
208
|
+
|
209
|
+
|
210
|
+
</div>
|
211
|
+
|
212
|
+
|
213
|
+
<div id="validator-badges">
|
214
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
215
|
+
</div>
|
216
|
+
|
217
|
+
</body>
|
218
|
+
</html>
|
@@ -0,0 +1,140 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Module: Kwartz::Assertion</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">Kwartz::Assertion</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/kwartz/assert_rb.html">
|
59
|
+
kwartz/assert.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
<!-- banner header -->
|
68
|
+
|
69
|
+
<div id="bodyContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<div id="contextContent">
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="method-list">
|
80
|
+
<h3 class="section-bar">Methods</h3>
|
81
|
+
|
82
|
+
<div class="name-list">
|
83
|
+
<a href="#M000001">assert</a>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if includes -->
|
91
|
+
|
92
|
+
<div id="section">
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<!-- if method_list -->
|
102
|
+
<div id="methods">
|
103
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
104
|
+
|
105
|
+
<div id="method-M000001" class="method-detail">
|
106
|
+
<a name="M000001"></a>
|
107
|
+
|
108
|
+
<div class="method-heading">
|
109
|
+
<a href="#M000001" class="method-signature">
|
110
|
+
<span class="method-name">assert</span><span class="method-args">(message="")</span>
|
111
|
+
</a>
|
112
|
+
</div>
|
113
|
+
|
114
|
+
<div class="method-description">
|
115
|
+
<p><a class="source-toggle" href="#"
|
116
|
+
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
117
|
+
<div class="method-source-code" id="M000001-source">
|
118
|
+
<pre>
|
119
|
+
<span class="ruby-comment cmt"># File kwartz/assert.rb, line 23</span>
|
120
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">message</span>=<span class="ruby-value str">""</span>)
|
121
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">AssertionError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"*** assertion failed: #{message}"</span>)
|
122
|
+
<span class="ruby-keyword kw">end</span>
|
123
|
+
</pre>
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
132
|
+
</div>
|
133
|
+
|
134
|
+
|
135
|
+
<div id="validator-badges">
|
136
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
137
|
+
</div>
|
138
|
+
|
139
|
+
</body>
|
140
|
+
</html>
|
@@ -0,0 +1,148 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: Kwartz::AssertionError</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Kwartz::AssertionError</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/kwartz/assert_rb.html">
|
59
|
+
kwartz/assert.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
<a href="KwartzError.html">
|
69
|
+
KwartzError
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="method-list">
|
88
|
+
<h3 class="section-bar">Methods</h3>
|
89
|
+
|
90
|
+
<div class="name-list">
|
91
|
+
<a href="#M000118">new</a>
|
92
|
+
</div>
|
93
|
+
</div>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
|
98
|
+
<!-- if includes -->
|
99
|
+
|
100
|
+
<div id="section">
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<!-- if method_list -->
|
110
|
+
<div id="methods">
|
111
|
+
<h3 class="section-bar">Public Class methods</h3>
|
112
|
+
|
113
|
+
<div id="method-M000118" class="method-detail">
|
114
|
+
<a name="M000118"></a>
|
115
|
+
|
116
|
+
<div class="method-heading">
|
117
|
+
<a href="#M000118" class="method-signature">
|
118
|
+
<span class="method-name">new</span><span class="method-args">(message)</span>
|
119
|
+
</a>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
<div class="method-description">
|
123
|
+
<p><a class="source-toggle" href="#"
|
124
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
125
|
+
<div class="method-source-code" id="M000118-source">
|
126
|
+
<pre>
|
127
|
+
<span class="ruby-comment cmt"># File kwartz/assert.rb, line 15</span>
|
128
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>)
|
129
|
+
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">message</span>)
|
130
|
+
<span class="ruby-keyword kw">end</span>
|
131
|
+
</pre>
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
</div>
|
135
|
+
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
|
140
|
+
</div>
|
141
|
+
|
142
|
+
|
143
|
+
<div id="validator-badges">
|
144
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
</body>
|
148
|
+
</html>
|