scharfie-rails-footnotes 3.4.2 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -0
- data/pkg/scharfie-rails-footnotes-3.4.2.gem +0 -0
- data/rdoc/classes/ActionController.html +107 -0
- data/rdoc/classes/ActionController/Base.html +119 -0
- data/rdoc/classes/Footnotes.html +186 -0
- data/rdoc/classes/Footnotes/Components.html +211 -0
- data/rdoc/classes/Footnotes/Extensions.html +128 -0
- data/rdoc/classes/Footnotes/Extensions/AbstractAdapter.html +148 -0
- data/rdoc/classes/Footnotes/Extensions/Exception.html +205 -0
- data/rdoc/classes/Footnotes/Extensions/MockController.html +111 -0
- data/rdoc/classes/Footnotes/Extensions/QueryAnalyzer.html +183 -0
- data/rdoc/classes/Footnotes/Extensions/Routes.html +148 -0
- data/rdoc/classes/Footnotes/Extensions/Sql.html +191 -0
- data/rdoc/classes/Footnotes/Filter.html +928 -0
- data/rdoc/classes/Footnotes/Notes.html +194 -0
- data/rdoc/classes/Footnotes/Notes/AbstractNote.html +698 -0
- data/rdoc/classes/Footnotes/Notes/ComponentsNote.html +221 -0
- data/rdoc/classes/Footnotes/Notes/ComponentsNote/ClassMethods.html +164 -0
- data/rdoc/classes/Footnotes/Notes/ControllerComponentNote.html +120 -0
- data/rdoc/classes/Footnotes/Notes/ControllerNote.html +361 -0
- data/rdoc/classes/Footnotes/Notes/CookiesNote.html +198 -0
- data/rdoc/classes/Footnotes/Notes/EnvNote.html +178 -0
- data/rdoc/classes/Footnotes/Notes/FilesNote.html +284 -0
- data/rdoc/classes/Footnotes/Notes/FiltersNote.html +291 -0
- data/rdoc/classes/Footnotes/Notes/GeneralNote.html +196 -0
- data/rdoc/classes/Footnotes/Notes/JavascriptsNote.html +174 -0
- data/rdoc/classes/Footnotes/Notes/LayoutNote.html +248 -0
- data/rdoc/classes/Footnotes/Notes/LogNote.html +216 -0
- data/rdoc/classes/Footnotes/Notes/ParamsComponentNote.html +120 -0
- data/rdoc/classes/Footnotes/Notes/ParamsNote.html +198 -0
- data/rdoc/classes/Footnotes/Notes/QueriesNote.html +384 -0
- data/rdoc/classes/Footnotes/Notes/RoutesNote.html +240 -0
- data/rdoc/classes/Footnotes/Notes/SessionNote.html +174 -0
- data/rdoc/classes/Footnotes/Notes/StylesheetsNote.html +174 -0
- data/rdoc/classes/Footnotes/Notes/ViewComponentNote.html +120 -0
- data/rdoc/classes/Footnotes/Notes/ViewNote.html +273 -0
- data/rdoc/created.rid +1 -0
- data/rdoc/files/README.html +118 -0
- data/rdoc/files/lib/rails-footnotes/backtracer_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/footnotes_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/abstract_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/components_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/controller_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/cookies_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/env_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/files_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/filters_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/general_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/javascripts_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/layout_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/log_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/params_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/queries_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/routes_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/session_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/stylesheets_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes/notes/view_note_rb.html +101 -0
- data/rdoc/files/lib/rails-footnotes_rb.html +101 -0
- data/rdoc/fr_class_index.html +60 -0
- data/rdoc/fr_file_index.html +47 -0
- data/rdoc/fr_method_index.html +156 -0
- data/rdoc/index.html +24 -0
- data/rdoc/rdoc-style.css +208 -0
- data/scharfie-rails-footnotes.gemspec +142 -0
- metadata +66 -3
- data/rails-footnotes.gemspec +0 -46
@@ -0,0 +1,240 @@
|
|
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: Footnotes::Notes::RoutesNote</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">Footnotes::Notes::RoutesNote</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/rails-footnotes/notes/routes_note_rb.html">
|
59
|
+
lib/rails-footnotes/notes/routes_note.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="AbstractNote.html">
|
69
|
+
AbstractNote
|
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="#M000089">content</a>
|
92
|
+
<a href="#M000088">legend</a>
|
93
|
+
<a href="#M000087">new</a>
|
94
|
+
<a href="#M000090">parse_routes</a>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
|
101
|
+
<!-- if includes -->
|
102
|
+
|
103
|
+
<div id="section">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<!-- if method_list -->
|
113
|
+
<div id="methods">
|
114
|
+
<h3 class="section-bar">Public Class methods</h3>
|
115
|
+
|
116
|
+
<div id="method-M000087" class="method-detail">
|
117
|
+
<a name="M000087"></a>
|
118
|
+
|
119
|
+
<div class="method-heading">
|
120
|
+
<a href="#M000087" class="method-signature">
|
121
|
+
<span class="method-name">new</span><span class="method-args">(controller)</span>
|
122
|
+
</a>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<div class="method-description">
|
126
|
+
<p><a class="source-toggle" href="#"
|
127
|
+
onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
|
128
|
+
<div class="method-source-code" id="M000087-source">
|
129
|
+
<pre>
|
130
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/routes_note.rb, line 6</span>
|
131
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">controller</span>)
|
132
|
+
<span class="ruby-ivar">@controller</span> = <span class="ruby-identifier">controller</span>
|
133
|
+
<span class="ruby-ivar">@parsed_routes</span> = <span class="ruby-identifier">parse_routes</span>
|
134
|
+
<span class="ruby-keyword kw">end</span>
|
135
|
+
</pre>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
141
|
+
|
142
|
+
<div id="method-M000089" class="method-detail">
|
143
|
+
<a name="M000089"></a>
|
144
|
+
|
145
|
+
<div class="method-heading">
|
146
|
+
<a href="#M000089" class="method-signature">
|
147
|
+
<span class="method-name">content</span><span class="method-args">()</span>
|
148
|
+
</a>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
<div class="method-description">
|
152
|
+
<p><a class="source-toggle" href="#"
|
153
|
+
onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
|
154
|
+
<div class="method-source-code" id="M000089-source">
|
155
|
+
<pre>
|
156
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/routes_note.rb, line 15</span>
|
157
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content</span>
|
158
|
+
<span class="ruby-identifier">mount_table</span>(<span class="ruby-ivar">@parsed_routes</span>.<span class="ruby-identifier">unshift</span>([<span class="ruby-identifier">:path</span>, <span class="ruby-identifier">:name</span>, <span class="ruby-identifier">:options</span>, <span class="ruby-identifier">:requirements</span>]))
|
159
|
+
<span class="ruby-keyword kw">end</span>
|
160
|
+
</pre>
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div id="method-M000088" class="method-detail">
|
166
|
+
<a name="M000088"></a>
|
167
|
+
|
168
|
+
<div class="method-heading">
|
169
|
+
<a href="#M000088" class="method-signature">
|
170
|
+
<span class="method-name">legend</span><span class="method-args">()</span>
|
171
|
+
</a>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
<div class="method-description">
|
175
|
+
<p><a class="source-toggle" href="#"
|
176
|
+
onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
|
177
|
+
<div class="method-source-code" id="M000088-source">
|
178
|
+
<pre>
|
179
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/routes_note.rb, line 11</span>
|
180
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">legend</span>
|
181
|
+
<span class="ruby-node">"Routes for #{@controller.class.to_s}"</span>
|
182
|
+
<span class="ruby-keyword kw">end</span>
|
183
|
+
</pre>
|
184
|
+
</div>
|
185
|
+
</div>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
<h3 class="section-bar">Protected Instance methods</h3>
|
189
|
+
|
190
|
+
<div id="method-M000090" class="method-detail">
|
191
|
+
<a name="M000090"></a>
|
192
|
+
|
193
|
+
<div class="method-heading">
|
194
|
+
<a href="#M000090" class="method-signature">
|
195
|
+
<span class="method-name">parse_routes</span><span class="method-args">()</span>
|
196
|
+
</a>
|
197
|
+
</div>
|
198
|
+
|
199
|
+
<div class="method-description">
|
200
|
+
<p><a class="source-toggle" href="#"
|
201
|
+
onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
|
202
|
+
<div class="method-source-code" id="M000090-source">
|
203
|
+
<pre>
|
204
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/routes_note.rb, line 20</span>
|
205
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_routes</span>
|
206
|
+
<span class="ruby-identifier">routes_with_name</span> = <span class="ruby-constant">ActionController</span><span class="ruby-operator">::</span><span class="ruby-constant">Routing</span><span class="ruby-operator">::</span><span class="ruby-constant">Routes</span>.<span class="ruby-identifier">named_routes</span>.<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">flatten</span>
|
207
|
+
|
208
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">ActionController</span><span class="ruby-operator">::</span><span class="ruby-constant">Routing</span><span class="ruby-operator">::</span><span class="ruby-constant">Routes</span>.<span class="ruby-identifier">filtered_routes</span>(<span class="ruby-identifier">:controller</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@controller</span>.<span class="ruby-identifier">controller_name</span>).<span class="ruby-identifier">collect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">route</span><span class="ruby-operator">|</span>
|
209
|
+
<span class="ruby-comment cmt"># Catch routes name if exists</span>
|
210
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">routes_with_name</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">route</span>)
|
211
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">i</span> <span class="ruby-value">? </span><span class="ruby-identifier">routes_with_name</span>[<span class="ruby-identifier">i</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>].<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-value str">''</span>
|
212
|
+
|
213
|
+
<span class="ruby-comment cmt"># Catch segments requirements</span>
|
214
|
+
<span class="ruby-identifier">req</span> = {}
|
215
|
+
<span class="ruby-identifier">route</span>.<span class="ruby-identifier">segments</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">segment</span><span class="ruby-operator">|</span>
|
216
|
+
<span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">segment</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">ActionController</span><span class="ruby-operator">::</span><span class="ruby-constant">Routing</span><span class="ruby-operator">::</span><span class="ruby-constant">DynamicSegment</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">segment</span>.<span class="ruby-identifier">regexp</span>
|
217
|
+
<span class="ruby-identifier">req</span>[<span class="ruby-identifier">segment</span>.<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">segment</span>.<span class="ruby-identifier">regexp</span>
|
218
|
+
<span class="ruby-keyword kw">end</span>
|
219
|
+
|
220
|
+
[<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">name</span>), <span class="ruby-identifier">route</span>.<span class="ruby-identifier">segments</span>.<span class="ruby-identifier">join</span>, <span class="ruby-identifier">route</span>.<span class="ruby-identifier">requirements</span>.<span class="ruby-identifier">reject</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">key</span>,<span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-identifier">key</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:controller</span>}.<span class="ruby-identifier">inspect</span>, <span class="ruby-identifier">req</span>.<span class="ruby-identifier">inspect</span>]
|
221
|
+
<span class="ruby-keyword kw">end</span>
|
222
|
+
<span class="ruby-keyword kw">end</span>
|
223
|
+
</pre>
|
224
|
+
</div>
|
225
|
+
</div>
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
</div>
|
230
|
+
|
231
|
+
|
232
|
+
</div>
|
233
|
+
|
234
|
+
|
235
|
+
<div id="validator-badges">
|
236
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
</body>
|
240
|
+
</html>
|
@@ -0,0 +1,174 @@
|
|
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: Footnotes::Notes::SessionNote</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">Footnotes::Notes::SessionNote</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/rails-footnotes/notes/session_note_rb.html">
|
59
|
+
lib/rails-footnotes/notes/session_note.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="AbstractNote.html">
|
69
|
+
AbstractNote
|
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="#M000066">content</a>
|
92
|
+
<a href="#M000065">new</a>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
|
99
|
+
<!-- if includes -->
|
100
|
+
|
101
|
+
<div id="section">
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<!-- if method_list -->
|
111
|
+
<div id="methods">
|
112
|
+
<h3 class="section-bar">Public Class methods</h3>
|
113
|
+
|
114
|
+
<div id="method-M000065" class="method-detail">
|
115
|
+
<a name="M000065"></a>
|
116
|
+
|
117
|
+
<div class="method-heading">
|
118
|
+
<a href="#M000065" class="method-signature">
|
119
|
+
<span class="method-name">new</span><span class="method-args">(controller)</span>
|
120
|
+
</a>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
<div class="method-description">
|
124
|
+
<p><a class="source-toggle" href="#"
|
125
|
+
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
126
|
+
<div class="method-source-code" id="M000065-source">
|
127
|
+
<pre>
|
128
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/session_note.rb, line 6</span>
|
129
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">controller</span>)
|
130
|
+
<span class="ruby-ivar">@session</span> = (<span class="ruby-identifier">controller</span>.<span class="ruby-identifier">session</span> <span class="ruby-operator">||</span> {}).<span class="ruby-identifier">symbolize_keys</span>
|
131
|
+
<span class="ruby-keyword kw">end</span>
|
132
|
+
</pre>
|
133
|
+
</div>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
138
|
+
|
139
|
+
<div id="method-M000066" class="method-detail">
|
140
|
+
<a name="M000066"></a>
|
141
|
+
|
142
|
+
<div class="method-heading">
|
143
|
+
<a href="#M000066" class="method-signature">
|
144
|
+
<span class="method-name">content</span><span class="method-args">()</span>
|
145
|
+
</a>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div class="method-description">
|
149
|
+
<p><a class="source-toggle" href="#"
|
150
|
+
onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
|
151
|
+
<div class="method-source-code" id="M000066-source">
|
152
|
+
<pre>
|
153
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/session_note.rb, line 10</span>
|
154
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content</span>
|
155
|
+
<span class="ruby-identifier">escape</span>(<span class="ruby-ivar">@session</span>.<span class="ruby-identifier">inspect</span>)
|
156
|
+
<span class="ruby-keyword kw">end</span>
|
157
|
+
</pre>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
|
163
|
+
</div>
|
164
|
+
|
165
|
+
|
166
|
+
</div>
|
167
|
+
|
168
|
+
|
169
|
+
<div id="validator-badges">
|
170
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
</body>
|
174
|
+
</html>
|
@@ -0,0 +1,174 @@
|
|
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: Footnotes::Notes::StylesheetsNote</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">Footnotes::Notes::StylesheetsNote</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/rails-footnotes/notes/stylesheets_note_rb.html">
|
59
|
+
lib/rails-footnotes/notes/stylesheets_note.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="FilesNote.html">
|
69
|
+
FilesNote
|
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="#M000039">scan_text</a>
|
92
|
+
<a href="#M000038">title</a>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
|
99
|
+
<!-- if includes -->
|
100
|
+
|
101
|
+
<div id="section">
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<!-- if method_list -->
|
111
|
+
<div id="methods">
|
112
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
113
|
+
|
114
|
+
<div id="method-M000038" class="method-detail">
|
115
|
+
<a name="M000038"></a>
|
116
|
+
|
117
|
+
<div class="method-heading">
|
118
|
+
<a href="#M000038" class="method-signature">
|
119
|
+
<span class="method-name">title</span><span class="method-args">()</span>
|
120
|
+
</a>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
<div class="method-description">
|
124
|
+
<p><a class="source-toggle" href="#"
|
125
|
+
onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
|
126
|
+
<div class="method-source-code" id="M000038-source">
|
127
|
+
<pre>
|
128
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/stylesheets_note.rb, line 6</span>
|
129
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">title</span>
|
130
|
+
<span class="ruby-node">"Stylesheets (#{@files.length})"</span>
|
131
|
+
<span class="ruby-keyword kw">end</span>
|
132
|
+
</pre>
|
133
|
+
</div>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<h3 class="section-bar">Protected Instance methods</h3>
|
138
|
+
|
139
|
+
<div id="method-M000039" class="method-detail">
|
140
|
+
<a name="M000039"></a>
|
141
|
+
|
142
|
+
<div class="method-heading">
|
143
|
+
<a href="#M000039" class="method-signature">
|
144
|
+
<span class="method-name">scan_text</span><span class="method-args">(text)</span>
|
145
|
+
</a>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div class="method-description">
|
149
|
+
<p><a class="source-toggle" href="#"
|
150
|
+
onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
|
151
|
+
<div class="method-source-code" id="M000039-source">
|
152
|
+
<pre>
|
153
|
+
<span class="ruby-comment cmt"># File lib/rails-footnotes/notes/stylesheets_note.rb, line 11</span>
|
154
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scan_text</span>(<span class="ruby-identifier">text</span>)
|
155
|
+
<span class="ruby-identifier">text</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/<link[^>]+href\s*=\s*['"]([^>?'"]+\.css)/i</span><span class="ruby-identifier">m</span>).<span class="ruby-identifier">flatten</span>
|
156
|
+
<span class="ruby-keyword kw">end</span>
|
157
|
+
</pre>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
|
163
|
+
</div>
|
164
|
+
|
165
|
+
|
166
|
+
</div>
|
167
|
+
|
168
|
+
|
169
|
+
<div id="validator-badges">
|
170
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
</body>
|
174
|
+
</html>
|