concordion 0.9.8 → 0.9.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile.rb +6 -6
- data/lib/concordion.rb +15 -0
- data/nbproject/private/private.properties +2 -4
- data/nbproject/private/rake-d.txt +5 -5
- data/nbproject/project.properties +4 -8
- data/nbproject/project.xml +3 -4
- data/tests/basic_assert.html +19 -1
- data/tests/basic_set.html +20 -6
- data/tests/basic_text.html +19 -9
- data/tests/failing.html +20 -5
- data/tests/failing_test.rb +1 -8
- data/tests/link_style_css.html +13 -1
- data/tests/lookahead_assert_true.html +28 -5
- data/tests/mixed.html +18 -1
- data/tests/return_result.html +20 -3
- data/tests/tables/table.html +47 -5
- data/tests/tables/verify_rows.html +60 -1
- data/tests/user-reported/basic_assert_true.html +25 -2
- data/tests/user-reported/basic_assert_true_test.rb +0 -3
- data/tests/user-reported/rubyish.html +42 -0
- data/tests/user-reported/{no_parens_test.rb → rubyish_test.rb} +1 -1
- metadata +16 -225
- data/README +0 -10
- data/html/classes/ConcordionBinder.html +0 -176
- data/html/classes/ConcordionBinder.src/M000042.html +0 -18
- data/html/classes/ConcordionBinder.src/M000043.html +0 -23
- data/html/classes/ConcordionBinder.src/M000044.html +0 -20
- data/html/classes/ConcordionCSS.html +0 -146
- data/html/classes/ConcordionCSS.src/M000100.html +0 -18
- data/html/classes/ConcordionCSS.src/M000101.html +0 -20
- data/html/classes/ConcordionCSSDecorator.html +0 -242
- data/html/classes/ConcordionCSSDecorator.src/M000011.html +0 -25
- data/html/classes/ConcordionCSSDecorator.src/M000012.html +0 -18
- data/html/classes/ConcordionCSSDecorator.src/M000013.html +0 -18
- data/html/classes/ConcordionCSSDecorator.src/M000014.html +0 -18
- data/html/classes/ConcordionCSSDecorator.src/M000015.html +0 -18
- data/html/classes/ConcordionCSSDecorator.src/M000016.html +0 -18
- data/html/classes/ConcordionCSSDecorator.src/M000017.html +0 -20
- data/html/classes/ConcordionCSSDecorator.src/M000018.html +0 -29
- data/html/classes/ConcordionConfigMethods.html +0 -146
- data/html/classes/ConcordionConfigMethods.src/M000123.html +0 -30
- data/html/classes/ConcordionConfigMethods.src/M000124.html +0 -26
- data/html/classes/ConcordionConstants.html +0 -146
- data/html/classes/ConcordionConstants.src/M000121.html +0 -20
- data/html/classes/ConcordionConstants.src/M000122.html +0 -18
- data/html/classes/ConcordionEnvironment.html +0 -212
- data/html/classes/ConcordionEnvironment.src/M000022.html +0 -18
- data/html/classes/ConcordionEnvironment.src/M000023.html +0 -18
- data/html/classes/ConcordionEnvironment.src/M000024.html +0 -18
- data/html/classes/ConcordionEnvironment.src/M000025.html +0 -18
- data/html/classes/ConcordionEnvironment.src/M000026.html +0 -19
- data/html/classes/ConcordionEnvironment.src/M000027.html +0 -19
- data/html/classes/ConcordionErrorCondition.html +0 -179
- data/html/classes/ConcordionErrorCondition.src/M000032.html +0 -22
- data/html/classes/ConcordionErrorCondition.src/M000033.html +0 -25
- data/html/classes/ConcordionInstrumenter.html +0 -152
- data/html/classes/ConcordionInstrumenter.src/M000045.html +0 -30
- data/html/classes/ConcordionInstrumenter.src/M000046.html +0 -22
- data/html/classes/ConcordionInternalTestMethods.html +0 -213
- data/html/classes/ConcordionInternalTestMethods.src/M000094.html +0 -25
- data/html/classes/ConcordionInternalTestMethods.src/M000095.html +0 -23
- data/html/classes/ConcordionInternalTestMethods.src/M000096.html +0 -26
- data/html/classes/ConcordionInternalTestMethods.src/M000097.html +0 -29
- data/html/classes/ConcordionInternalTestMethods.src/M000098.html +0 -22
- data/html/classes/ConcordionInternalTestMethods.src/M000099.html +0 -18
- data/html/classes/ConcordionInvoker.html +0 -327
- data/html/classes/ConcordionInvoker.src/M000058.html +0 -18
- data/html/classes/ConcordionInvoker.src/M000059.html +0 -26
- data/html/classes/ConcordionInvoker.src/M000060.html +0 -23
- data/html/classes/ConcordionInvoker.src/M000061.html +0 -26
- data/html/classes/ConcordionInvoker.src/M000062.html +0 -27
- data/html/classes/ConcordionInvoker.src/M000063.html +0 -22
- data/html/classes/ConcordionInvoker.src/M000064.html +0 -25
- data/html/classes/ConcordionInvoker.src/M000065.html +0 -26
- data/html/classes/ConcordionInvoker.src/M000066.html +0 -18
- data/html/classes/ConcordionInvoker.src/M000067.html +0 -18
- data/html/classes/ConcordionInvoker.src/M000068.html +0 -18
- data/html/classes/ConcordionInvoker.src/M000069.html +0 -26
- data/html/classes/ConcordionInvoker.src/M000070.html +0 -35
- data/html/classes/ConcordionLookaheadHandler.html +0 -152
- data/html/classes/ConcordionLookaheadHandler.src/M000028.html +0 -18
- data/html/classes/ConcordionLookaheadHandler.src/M000029.html +0 -22
- data/html/classes/ConcordionParseResult.html +0 -369
- data/html/classes/ConcordionParseResult.src/M000076.html +0 -21
- data/html/classes/ConcordionParseResult.src/M000077.html +0 -18
- data/html/classes/ConcordionParseResult.src/M000078.html +0 -18
- data/html/classes/ConcordionParseResult.src/M000079.html +0 -18
- data/html/classes/ConcordionParseResult.src/M000080.html +0 -18
- data/html/classes/ConcordionParseResult.src/M000081.html +0 -18
- data/html/classes/ConcordionParseResult.src/M000082.html +0 -18
- data/html/classes/ConcordionParseResult.src/M000083.html +0 -18
- data/html/classes/ConcordionParseResult.src/M000084.html +0 -19
- data/html/classes/ConcordionParseResult.src/M000085.html +0 -18
- data/html/classes/ConcordionParseResult.src/M000086.html +0 -18
- data/html/classes/ConcordionParseResult.src/M000087.html +0 -21
- data/html/classes/ConcordionParseResult.src/M000088.html +0 -22
- data/html/classes/ConcordionParseResult.src/M000089.html +0 -22
- data/html/classes/ConcordionParser.html +0 -214
- data/html/classes/ConcordionParser.src/M000002.html +0 -21
- data/html/classes/ConcordionParser.src/M000003.html +0 -20
- data/html/classes/ConcordionParser.src/M000004.html +0 -20
- data/html/classes/ConcordionParser.src/M000005.html +0 -26
- data/html/classes/ConcordionProcessor.html +0 -176
- data/html/classes/ConcordionProcessor.src/M000019.html +0 -19
- data/html/classes/ConcordionProcessor.src/M000020.html +0 -22
- data/html/classes/ConcordionProcessor.src/M000021.html +0 -18
- data/html/classes/ConcordionReader.html +0 -144
- data/html/classes/ConcordionReader.src/M000001.html +0 -18
- data/html/classes/ConcordionState.html +0 -299
- data/html/classes/ConcordionState.src/M000052.html +0 -18
- data/html/classes/ConcordionState.src/M000053.html +0 -23
- data/html/classes/ConcordionState.src/M000054.html +0 -18
- data/html/classes/ConcordionState.src/M000055.html +0 -18
- data/html/classes/ConcordionState.src/M000056.html +0 -25
- data/html/classes/ConcordionState.src/M000057.html +0 -28
- data/html/classes/ConcordionStringUtility.html +0 -259
- data/html/classes/ConcordionStringUtility.src/M000102.html +0 -18
- data/html/classes/ConcordionStringUtility.src/M000103.html +0 -18
- data/html/classes/ConcordionStringUtility.src/M000104.html +0 -18
- data/html/classes/ConcordionStringUtility.src/M000105.html +0 -18
- data/html/classes/ConcordionStringUtility.src/M000106.html +0 -18
- data/html/classes/ConcordionStringUtility.src/M000107.html +0 -18
- data/html/classes/ConcordionStringUtility.src/M000108.html +0 -43
- data/html/classes/ConcordionStringUtility.src/M000109.html +0 -18
- data/html/classes/ConcordionStringUtility.src/M000110.html +0 -18
- data/html/classes/ConcordionStringWriter.html +0 -165
- data/html/classes/ConcordionStringWriter.src/M000030.html +0 -19
- data/html/classes/ConcordionStringWriter.src/M000031.html +0 -18
- data/html/classes/ConcordionTestCase.html +0 -220
- data/html/classes/ConcordionTestCase.src/M000006.html +0 -19
- data/html/classes/ConcordionTestCase.src/M000007.html +0 -19
- data/html/classes/ConcordionTestCase.src/M000008.html +0 -19
- data/html/classes/ConcordionTestCase.src/M000009.html +0 -18
- data/html/classes/ConcordionTestCase.src/M000010.html +0 -18
- data/html/classes/ConcordionTestMethods.html +0 -151
- data/html/classes/ConcordionTestMethods.src/M000092.html +0 -24
- data/html/classes/ConcordionUtility.html +0 -229
- data/html/classes/ConcordionUtility.src/M000114.html +0 -18
- data/html/classes/ConcordionUtility.src/M000115.html +0 -34
- data/html/classes/ConcordionUtility.src/M000116.html +0 -22
- data/html/classes/ConcordionUtility.src/M000117.html +0 -18
- data/html/classes/ConcordionUtility.src/M000118.html +0 -22
- data/html/classes/ConcordionUtility.src/M000119.html +0 -18
- data/html/classes/ConcordionUtility.src/M000120.html +0 -25
- data/html/classes/ConcordionVerifier.html +0 -219
- data/html/classes/ConcordionVerifier.src/M000071.html +0 -20
- data/html/classes/ConcordionVerifier.src/M000072.html +0 -20
- data/html/classes/ConcordionVerifier.src/M000073.html +0 -23
- data/html/classes/ConcordionVerifier.src/M000074.html +0 -22
- data/html/classes/ConcordionVerifier.src/M000075.html +0 -28
- data/html/classes/ConcordionWriter.html +0 -244
- data/html/classes/ConcordionWriter.src/M000034.html +0 -18
- data/html/classes/ConcordionWriter.src/M000035.html +0 -20
- data/html/classes/ConcordionWriter.src/M000036.html +0 -18
- data/html/classes/ConcordionWriter.src/M000037.html +0 -18
- data/html/classes/ConcordionWriter.src/M000038.html +0 -21
- data/html/classes/ConcordionWriter.src/M000039.html +0 -22
- data/html/classes/ConcordionWriter.src/M000040.html +0 -18
- data/html/classes/ConcordionWriter.src/M000041.html +0 -18
- data/html/classes/FailConditionally.html +0 -131
- data/html/classes/FailConditionally.src/M000090.html +0 -22
- data/html/classes/GoldmasterTestCase.html +0 -208
- data/html/classes/GoldmasterTestCase.src/M000047.html +0 -22
- data/html/classes/GoldmasterTestCase.src/M000048.html +0 -18
- data/html/classes/GoldmasterTestCase.src/M000049.html +0 -18
- data/html/classes/GoldmasterTestCase.src/M000050.html +0 -18
- data/html/classes/GoldmasterTestCase.src/M000051.html +0 -31
- data/html/classes/LoaderHelper.html +0 -138
- data/html/classes/LoaderHelper.src/M000093.html +0 -24
- data/html/classes/PluralToSingularUtility.html +0 -131
- data/html/classes/PluralToSingularUtility.src/M000091.html +0 -18
- data/html/classes/SnakeCaseUtility.html +0 -161
- data/html/classes/SnakeCaseUtility.src/M000111.html +0 -23
- data/html/classes/SnakeCaseUtility.src/M000112.html +0 -20
- data/html/classes/SnakeCaseUtility.src/M000113.html +0 -18
- data/html/created.rid +0 -1
- data/html/files/README.html +0 -123
- data/html/files/lib/concordion_binder_rb.html +0 -108
- data/html/files/lib/concordion_constants_rb.html +0 -101
- data/html/files/lib/concordion_css_decorator_rb.html +0 -109
- data/html/files/lib/concordion_css_rb.html +0 -101
- data/html/files/lib/concordion_environment_rb.html +0 -101
- data/html/files/lib/concordion_error_condition_rb.html +0 -108
- data/html/files/lib/concordion_instrumenter_rb.html +0 -101
- data/html/files/lib/concordion_invoker_rb.html +0 -109
- data/html/files/lib/concordion_lookahead_handler_rb.html +0 -101
- data/html/files/lib/concordion_parse_result_rb.html +0 -108
- data/html/files/lib/concordion_parser_rb.html +0 -110
- data/html/files/lib/concordion_processor_rb.html +0 -108
- data/html/files/lib/concordion_rb.html +0 -108
- data/html/files/lib/concordion_reader_rb.html +0 -108
- data/html/files/lib/concordion_state_rb.html +0 -112
- data/html/files/lib/concordion_string_utility_rb.html +0 -101
- data/html/files/lib/concordion_string_writer_rb.html +0 -101
- data/html/files/lib/concordion_test_case_rb.html +0 -119
- data/html/files/lib/concordion_test_methods_rb.html +0 -125
- data/html/files/lib/concordion_utility_rb.html +0 -109
- data/html/files/lib/concordion_verifier_rb.html +0 -108
- data/html/files/lib/concordion_writer_rb.html +0 -101
- data/html/files/lib/goldmaster_test_case_rb.html +0 -110
- data/html/files/lib/loader_helper_rb.html +0 -108
- data/html/files/lib/rcor_rb.html +0 -108
- data/html/fr_class_index.html +0 -54
- data/html/fr_file_index.html +0 -52
- data/html/fr_method_index.html +0 -150
- data/html/index.html +0 -24
- data/html/rdoc-style.css +0 -208
- data/nbproject/private/config.properties +0 -0
- data/nbproject/private/private.xml +0 -4
- data/tests/user-reported/no_parens.html +0 -15
@@ -1,146 +0,0 @@
|
|
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: ConcordionCSS</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">ConcordionCSS</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/concordion_css_rb.html">
|
59
|
-
lib/concordion_css.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="#M000100">css_filename</a>
|
84
|
-
<a href="#M000101">css_string</a>
|
85
|
-
</div>
|
86
|
-
</div>
|
87
|
-
|
88
|
-
</div>
|
89
|
-
|
90
|
-
|
91
|
-
<!-- if includes -->
|
92
|
-
|
93
|
-
<div id="section">
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
<!-- if method_list -->
|
103
|
-
<div id="methods">
|
104
|
-
<h3 class="section-bar">Public Class methods</h3>
|
105
|
-
|
106
|
-
<div id="method-M000100" class="method-detail">
|
107
|
-
<a name="M000100"></a>
|
108
|
-
|
109
|
-
<div class="method-heading">
|
110
|
-
<a href="ConcordionCSS.src/M000100.html" target="Code" class="method-signature"
|
111
|
-
onclick="popupCode('ConcordionCSS.src/M000100.html');return false;">
|
112
|
-
<span class="method-name">css_filename</span><span class="method-args">()</span>
|
113
|
-
</a>
|
114
|
-
</div>
|
115
|
-
|
116
|
-
<div class="method-description">
|
117
|
-
</div>
|
118
|
-
</div>
|
119
|
-
|
120
|
-
<div id="method-M000101" class="method-detail">
|
121
|
-
<a name="M000101"></a>
|
122
|
-
|
123
|
-
<div class="method-heading">
|
124
|
-
<a href="ConcordionCSS.src/M000101.html" target="Code" class="method-signature"
|
125
|
-
onclick="popupCode('ConcordionCSS.src/M000101.html');return false;">
|
126
|
-
<span class="method-name">css_string</span><span class="method-args">()</span>
|
127
|
-
</a>
|
128
|
-
</div>
|
129
|
-
|
130
|
-
<div class="method-description">
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
|
135
|
-
</div>
|
136
|
-
|
137
|
-
|
138
|
-
</div>
|
139
|
-
|
140
|
-
|
141
|
-
<div id="validator-badges">
|
142
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
</body>
|
146
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>css_filename (ConcordionCSS)</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 lib/concordion_css.rb, line 4</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">css_filename</span>
|
15
|
-
<span class="ruby-value str">"concordion.css"</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
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>css_string (ConcordionCSS)</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 lib/concordion_css.rb, line 8</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">css_string</span>
|
15
|
-
<span class="ruby-identifier">css</span> = <span class="ruby-value str">"* {\nfont-family: Arial;\n}\nbody {\npadding: 32px;\n}\npre {\npadding: 6px 28px 6px 28px;\nbackground-color: #E8EEF7;\n}\npre, pre *, code, kbd {\nfont-family: Courier New, Courier;\nfont-size: 10pt;\n}\nh1, h1 * {\nfont-size: 24pt;\n}\np, td, th, li, .breadcrumbs {\nfont-size: 10pt;\n}\np, li {\nline-height: 140%;\n}\ntable {\nborder-collapse: collapse;\nempty-cells: show;\nmargin: 8px 0px 8px 0px;\n}\nth, td {\nborder: 1px solid black;\npadding: 3px;\n}\ntd {\nbackground-color: white;\nvertical-align: top;\n}\nth {\nbackground-color: #C3D9FF;\n}\nli {\nmargin-top: 6px;\nmargin-bottom: 6px;\n}\n\n\n.example {\npadding: 2px 12px 6px 12px;\nborder: 1px solid #C3D9FF;\nmargin: 6px 0px 28px 0px;\nbackground-color: #F5F9FD;\n}\n.example h3 {\nmargin-top: 8px;\nmargin-bottom: 8px;\nfont-size: 12pt;\n}\n\np.success {\npadding: 2px;\n}\n.concordion_success, .concordion_success * {\nbackground-color: #afa;\n}\n.success pre {\nbackground-color: #bbffbb;\n}\n.concordion_failure, .concordion_failure * {\nbackground-color: #ffb0b0;\npadding: 1px;\n}\n.concordion_failure .expected {\ntext-decoration: line-through;\ncolor: #bb5050;\n}\n\ntd.concordion_failure {\nbackground-color: #ffb0b0 !important;\n}\ntd.concordion_success {\nbackground-color: #afa !important;\n}\n\nins {\ntext-decoration: none;\n}\n\n.exceptionMessage {\nbackground-color: #fdd;\nfont-family: Courier New, Courier, Monospace;\nfont-size: 10pt;\ndisplay: block;\nfont-weight: normal;\npadding: 4px;\ntext-decoration: none !important;\n}\n.stackTrace, .stackTrace * {\nfont-weight: normal;\n}\n.stackTrace {\ndisplay: none;\npadding: 1px 4px 4px 4px;\nbackground-color: #fdd;\nborder-top: 1px dotted black;\n}\n.stackTraceExceptionMessage {\ndisplay: block;\nfont-family: Courier New, Courier, Monospace;\nfont-size: 8pt;\nwhite-space: wrap;\npadding: 1px 0px 1px 0px;\n}\n.stackTraceEntry {\nwhite-space: nowrap;\nfont-family: Courier New, Courier, Monospace;\ndisplay: block;\nfont-size: 8pt;\npadding: 1px 0px 1px 32px;\n}\n.stackTraceButton {\nfont-size: 8pt;\nmargin: 2px 8px 2px 0px;\nfont-weight: normal;\nfont-family: Arial;\n}\n\n.special {\nfont-style: italic;\n}\n.missing, .missing * {\nbackground-color: #ff9999;\n}\n.surplus, .surplus * {\nbackground-color: #ff9999;\n}\n.footer {\ntext-align: right;\nmargin-top: 40px;\nfont-size: 8pt;\nwidth: 100%;\ncolor: #999;\n}\n.footer .testTime {\npadding: 2px 10px 0px 0px;\n}\n\n.idea {\nfont-size: 9pt;\ncolor: #888;\nfont-style: italic;\n}\n.tight li {\nmargin-top: 1px;\nmargin-bottom: 1px;\n}\n.commentary {\nfloat: right;\nwidth: 200px;\nbackground-color: #ffffd0;\npadding:8px;\nborder: 3px solid #eeeeb0;\nmargin: 10px 0px 10px 10px;\n}\n.commentary, .commentary * {\nfont-size: 8pt;\n}\n"</span>
|
16
|
-
|
17
|
-
<span class="ruby-identifier">css</span>.<span class="ruby-identifier">strip</span>
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,242 +0,0 @@
|
|
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: ConcordionCSSDecorator</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">ConcordionCSSDecorator</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/concordion_css_decorator_rb.html">
|
59
|
-
lib/concordion_css_decorator.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
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div id="method-list">
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
87
|
-
|
88
|
-
<div class="name-list">
|
89
|
-
<a href="#M000011">add_concordion_css_link</a>
|
90
|
-
<a href="#M000017">add_css_file_to_output_dir</a>
|
91
|
-
<a href="#M000012">append_to_head</a>
|
92
|
-
<a href="#M000015">css</a>
|
93
|
-
<a href="#M000016">css_filename</a>
|
94
|
-
<a href="#M000018">decorate_tag</a>
|
95
|
-
<a href="#M000014">inline_css</a>
|
96
|
-
<a href="#M000013">link_to_css</a>
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
|
100
|
-
</div>
|
101
|
-
|
102
|
-
|
103
|
-
<!-- if includes -->
|
104
|
-
|
105
|
-
<div id="section">
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<!-- if method_list -->
|
115
|
-
<div id="methods">
|
116
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
117
|
-
|
118
|
-
<div id="method-M000011" class="method-detail">
|
119
|
-
<a name="M000011"></a>
|
120
|
-
|
121
|
-
<div class="method-heading">
|
122
|
-
<a href="ConcordionCSSDecorator.src/M000011.html" target="Code" class="method-signature"
|
123
|
-
onclick="popupCode('ConcordionCSSDecorator.src/M000011.html');return false;">
|
124
|
-
<span class="method-name">add_concordion_css_link</span><span class="method-args">(root, html, type)</span>
|
125
|
-
</a>
|
126
|
-
</div>
|
127
|
-
|
128
|
-
<div class="method-description">
|
129
|
-
</div>
|
130
|
-
</div>
|
131
|
-
|
132
|
-
<div id="method-M000017" class="method-detail">
|
133
|
-
<a name="M000017"></a>
|
134
|
-
|
135
|
-
<div class="method-heading">
|
136
|
-
<a href="ConcordionCSSDecorator.src/M000017.html" target="Code" class="method-signature"
|
137
|
-
onclick="popupCode('ConcordionCSSDecorator.src/M000017.html');return false;">
|
138
|
-
<span class="method-name">add_css_file_to_output_dir</span><span class="method-args">(writer, type)</span>
|
139
|
-
</a>
|
140
|
-
</div>
|
141
|
-
|
142
|
-
<div class="method-description">
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
<div id="method-M000012" class="method-detail">
|
147
|
-
<a name="M000012"></a>
|
148
|
-
|
149
|
-
<div class="method-heading">
|
150
|
-
<a href="ConcordionCSSDecorator.src/M000012.html" target="Code" class="method-signature"
|
151
|
-
onclick="popupCode('ConcordionCSSDecorator.src/M000012.html');return false;">
|
152
|
-
<span class="method-name">append_to_head</span><span class="method-args">(html, s)</span>
|
153
|
-
</a>
|
154
|
-
</div>
|
155
|
-
|
156
|
-
<div class="method-description">
|
157
|
-
</div>
|
158
|
-
</div>
|
159
|
-
|
160
|
-
<div id="method-M000015" class="method-detail">
|
161
|
-
<a name="M000015"></a>
|
162
|
-
|
163
|
-
<div class="method-heading">
|
164
|
-
<a href="ConcordionCSSDecorator.src/M000015.html" target="Code" class="method-signature"
|
165
|
-
onclick="popupCode('ConcordionCSSDecorator.src/M000015.html');return false;">
|
166
|
-
<span class="method-name">css</span><span class="method-args">()</span>
|
167
|
-
</a>
|
168
|
-
</div>
|
169
|
-
|
170
|
-
<div class="method-description">
|
171
|
-
</div>
|
172
|
-
</div>
|
173
|
-
|
174
|
-
<div id="method-M000016" class="method-detail">
|
175
|
-
<a name="M000016"></a>
|
176
|
-
|
177
|
-
<div class="method-heading">
|
178
|
-
<a href="ConcordionCSSDecorator.src/M000016.html" target="Code" class="method-signature"
|
179
|
-
onclick="popupCode('ConcordionCSSDecorator.src/M000016.html');return false;">
|
180
|
-
<span class="method-name">css_filename</span><span class="method-args">()</span>
|
181
|
-
</a>
|
182
|
-
</div>
|
183
|
-
|
184
|
-
<div class="method-description">
|
185
|
-
</div>
|
186
|
-
</div>
|
187
|
-
|
188
|
-
<div id="method-M000018" class="method-detail">
|
189
|
-
<a name="M000018"></a>
|
190
|
-
|
191
|
-
<div class="method-heading">
|
192
|
-
<a href="ConcordionCSSDecorator.src/M000018.html" target="Code" class="method-signature"
|
193
|
-
onclick="popupCode('ConcordionCSSDecorator.src/M000018.html');return false;">
|
194
|
-
<span class="method-name">decorate_tag</span><span class="method-args">(rv, tag, cpr)</span>
|
195
|
-
</a>
|
196
|
-
</div>
|
197
|
-
|
198
|
-
<div class="method-description">
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<div id="method-M000014" class="method-detail">
|
203
|
-
<a name="M000014"></a>
|
204
|
-
|
205
|
-
<div class="method-heading">
|
206
|
-
<a href="ConcordionCSSDecorator.src/M000014.html" target="Code" class="method-signature"
|
207
|
-
onclick="popupCode('ConcordionCSSDecorator.src/M000014.html');return false;">
|
208
|
-
<span class="method-name">inline_css</span><span class="method-args">(html)</span>
|
209
|
-
</a>
|
210
|
-
</div>
|
211
|
-
|
212
|
-
<div class="method-description">
|
213
|
-
</div>
|
214
|
-
</div>
|
215
|
-
|
216
|
-
<div id="method-M000013" class="method-detail">
|
217
|
-
<a name="M000013"></a>
|
218
|
-
|
219
|
-
<div class="method-heading">
|
220
|
-
<a href="ConcordionCSSDecorator.src/M000013.html" target="Code" class="method-signature"
|
221
|
-
onclick="popupCode('ConcordionCSSDecorator.src/M000013.html');return false;">
|
222
|
-
<span class="method-name">link_to_css</span><span class="method-args">(html)</span>
|
223
|
-
</a>
|
224
|
-
</div>
|
225
|
-
|
226
|
-
<div class="method-description">
|
227
|
-
</div>
|
228
|
-
</div>
|
229
|
-
|
230
|
-
|
231
|
-
</div>
|
232
|
-
|
233
|
-
|
234
|
-
</div>
|
235
|
-
|
236
|
-
|
237
|
-
<div id="validator-badges">
|
238
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
239
|
-
</div>
|
240
|
-
|
241
|
-
</body>
|
242
|
-
</html>
|
@@ -1,25 +0,0 @@
|
|
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_concordion_css_link (ConcordionCSSDecorator)</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 lib/concordion_css_decorator.rb, line 7</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_concordion_css_link</span>(<span class="ruby-identifier">root</span>, <span class="ruby-identifier">html</span>, <span class="ruby-identifier">type</span>)
|
15
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">html</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value str">"head"</span>).<span class="ruby-identifier">nil?</span>
|
16
|
-
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">search</span>(<span class="ruby-value str">"html"</span>).<span class="ruby-identifier">prepend</span>(<span class="ruby-value str">'<head></head>'</span>)
|
17
|
-
<span class="ruby-keyword kw">end</span>
|
18
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:link</span>
|
19
|
-
<span class="ruby-identifier">link_to_css</span>(<span class="ruby-identifier">html</span>)
|
20
|
-
<span class="ruby-keyword kw">else</span>
|
21
|
-
<span class="ruby-identifier">inline_css</span>(<span class="ruby-identifier">html</span>)
|
22
|
-
<span class="ruby-keyword kw">end</span>
|
23
|
-
<span class="ruby-keyword kw">end</span></pre>
|
24
|
-
</body>
|
25
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>append_to_head (ConcordionCSSDecorator)</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 lib/concordion_css_decorator.rb, line 18</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">append_to_head</span>(<span class="ruby-identifier">html</span>, <span class="ruby-identifier">s</span>)
|
15
|
-
<span class="ruby-identifier">html</span>.<span class="ruby-identifier">search</span>(<span class="ruby-value str">"head"</span>).<span class="ruby-identifier">append</span>(<span class="ruby-identifier">s</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>link_to_css (ConcordionCSSDecorator)</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 lib/concordion_css_decorator.rb, line 21</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link_to_css</span>(<span class="ruby-identifier">html</span>)
|
15
|
-
<span class="ruby-identifier">append_to_head</span>(<span class="ruby-identifier">html</span>, <span class="ruby-node">"<link rel='stylesheet' type='text/css' href='#{css_filename}' />"</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>inline_css (ConcordionCSSDecorator)</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 lib/concordion_css_decorator.rb, line 26</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inline_css</span>(<span class="ruby-identifier">html</span>)
|
15
|
-
<span class="ruby-identifier">append_to_head</span>(<span class="ruby-identifier">html</span>, <span class="ruby-node">"<style type='text/css'>#{css}</style>"</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>css (ConcordionCSSDecorator)</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 lib/concordion_css_decorator.rb, line 30</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">css</span>
|
15
|
-
<span class="ruby-constant">ConcordionCSS</span>.<span class="ruby-identifier">css_string</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>css_filename (ConcordionCSSDecorator)</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 lib/concordion_css_decorator.rb, line 34</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">css_filename</span>
|
15
|
-
<span class="ruby-constant">ConcordionCSS</span>.<span class="ruby-identifier">css_filename</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
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_css_file_to_output_dir (ConcordionCSSDecorator)</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 lib/concordion_css_decorator.rb, line 38</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_css_file_to_output_dir</span>(<span class="ruby-identifier">writer</span>, <span class="ruby-identifier">type</span>)
|
15
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">writer</span>.<span class="ruby-identifier">output_file_exists?</span>(<span class="ruby-identifier">css_filename</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:link</span>
|
16
|
-
<span class="ruby-identifier">writer</span>.<span class="ruby-identifier">calculate_filename_and_overwrite</span>(<span class="ruby-identifier">css</span>, <span class="ruby-identifier">css_filename</span>)
|
17
|
-
<span class="ruby-keyword kw">end</span>
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,29 +0,0 @@
|
|
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>decorate_tag (ConcordionCSSDecorator)</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 lib/concordion_css_decorator.rb, line 44</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decorate_tag</span>(<span class="ruby-identifier">rv</span>, <span class="ruby-identifier">tag</span>, <span class="ruby-identifier">cpr</span>)
|
15
|
-
<span class="ruby-identifier">context</span> = <span class="ruby-identifier">tag</span>.<span class="ruby-identifier">to_html</span>
|
16
|
-
<span class="ruby-identifier">expected</span> = <span class="ruby-identifier">tag</span>.<span class="ruby-identifier">inner_html</span>
|
17
|
-
<span class="ruby-identifier">xpath</span> = <span class="ruby-identifier">tag</span>.<span class="ruby-identifier">xpath</span>
|
18
|
-
|
19
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">rv</span>[<span class="ruby-identifier">:result</span>]
|
20
|
-
<span class="ruby-identifier">tag</span>[<span class="ruby-identifier">:class</span>] = <span class="ruby-value str">'concordion_success'</span>
|
21
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
22
|
-
<span class="ruby-keyword kw">end</span>
|
23
|
-
|
24
|
-
<span class="ruby-identifier">tag</span>[<span class="ruby-identifier">:class</span>] = <span class="ruby-value str">'concordion_failure'</span>
|
25
|
-
<span class="ruby-identifier">cpr</span>.<span class="ruby-identifier">attribute_error</span>(<span class="ruby-identifier">rv</span>[<span class="ruby-identifier">:actual</span>], <span class="ruby-identifier">rv</span>[<span class="ruby-identifier">:expected</span>])
|
26
|
-
<span class="ruby-constant">ConcordionErrorCondition</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">rv</span>[<span class="ruby-identifier">:actual</span>], <span class="ruby-identifier">xpath</span>, <span class="ruby-identifier">context</span>, <span class="ruby-identifier">cpr</span>.<span class="ruby-identifier">is_assert_true_command?</span>)
|
27
|
-
<span class="ruby-keyword kw">end</span></pre>
|
28
|
-
</body>
|
29
|
-
</html>
|