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.
Files changed (66) hide show
  1. data/VERSION +1 -0
  2. data/pkg/scharfie-rails-footnotes-3.4.2.gem +0 -0
  3. data/rdoc/classes/ActionController.html +107 -0
  4. data/rdoc/classes/ActionController/Base.html +119 -0
  5. data/rdoc/classes/Footnotes.html +186 -0
  6. data/rdoc/classes/Footnotes/Components.html +211 -0
  7. data/rdoc/classes/Footnotes/Extensions.html +128 -0
  8. data/rdoc/classes/Footnotes/Extensions/AbstractAdapter.html +148 -0
  9. data/rdoc/classes/Footnotes/Extensions/Exception.html +205 -0
  10. data/rdoc/classes/Footnotes/Extensions/MockController.html +111 -0
  11. data/rdoc/classes/Footnotes/Extensions/QueryAnalyzer.html +183 -0
  12. data/rdoc/classes/Footnotes/Extensions/Routes.html +148 -0
  13. data/rdoc/classes/Footnotes/Extensions/Sql.html +191 -0
  14. data/rdoc/classes/Footnotes/Filter.html +928 -0
  15. data/rdoc/classes/Footnotes/Notes.html +194 -0
  16. data/rdoc/classes/Footnotes/Notes/AbstractNote.html +698 -0
  17. data/rdoc/classes/Footnotes/Notes/ComponentsNote.html +221 -0
  18. data/rdoc/classes/Footnotes/Notes/ComponentsNote/ClassMethods.html +164 -0
  19. data/rdoc/classes/Footnotes/Notes/ControllerComponentNote.html +120 -0
  20. data/rdoc/classes/Footnotes/Notes/ControllerNote.html +361 -0
  21. data/rdoc/classes/Footnotes/Notes/CookiesNote.html +198 -0
  22. data/rdoc/classes/Footnotes/Notes/EnvNote.html +178 -0
  23. data/rdoc/classes/Footnotes/Notes/FilesNote.html +284 -0
  24. data/rdoc/classes/Footnotes/Notes/FiltersNote.html +291 -0
  25. data/rdoc/classes/Footnotes/Notes/GeneralNote.html +196 -0
  26. data/rdoc/classes/Footnotes/Notes/JavascriptsNote.html +174 -0
  27. data/rdoc/classes/Footnotes/Notes/LayoutNote.html +248 -0
  28. data/rdoc/classes/Footnotes/Notes/LogNote.html +216 -0
  29. data/rdoc/classes/Footnotes/Notes/ParamsComponentNote.html +120 -0
  30. data/rdoc/classes/Footnotes/Notes/ParamsNote.html +198 -0
  31. data/rdoc/classes/Footnotes/Notes/QueriesNote.html +384 -0
  32. data/rdoc/classes/Footnotes/Notes/RoutesNote.html +240 -0
  33. data/rdoc/classes/Footnotes/Notes/SessionNote.html +174 -0
  34. data/rdoc/classes/Footnotes/Notes/StylesheetsNote.html +174 -0
  35. data/rdoc/classes/Footnotes/Notes/ViewComponentNote.html +120 -0
  36. data/rdoc/classes/Footnotes/Notes/ViewNote.html +273 -0
  37. data/rdoc/created.rid +1 -0
  38. data/rdoc/files/README.html +118 -0
  39. data/rdoc/files/lib/rails-footnotes/backtracer_rb.html +101 -0
  40. data/rdoc/files/lib/rails-footnotes/footnotes_rb.html +101 -0
  41. data/rdoc/files/lib/rails-footnotes/notes/abstract_note_rb.html +101 -0
  42. data/rdoc/files/lib/rails-footnotes/notes/components_note_rb.html +101 -0
  43. data/rdoc/files/lib/rails-footnotes/notes/controller_note_rb.html +101 -0
  44. data/rdoc/files/lib/rails-footnotes/notes/cookies_note_rb.html +101 -0
  45. data/rdoc/files/lib/rails-footnotes/notes/env_note_rb.html +101 -0
  46. data/rdoc/files/lib/rails-footnotes/notes/files_note_rb.html +101 -0
  47. data/rdoc/files/lib/rails-footnotes/notes/filters_note_rb.html +101 -0
  48. data/rdoc/files/lib/rails-footnotes/notes/general_note_rb.html +101 -0
  49. data/rdoc/files/lib/rails-footnotes/notes/javascripts_note_rb.html +101 -0
  50. data/rdoc/files/lib/rails-footnotes/notes/layout_note_rb.html +101 -0
  51. data/rdoc/files/lib/rails-footnotes/notes/log_note_rb.html +101 -0
  52. data/rdoc/files/lib/rails-footnotes/notes/params_note_rb.html +101 -0
  53. data/rdoc/files/lib/rails-footnotes/notes/queries_note_rb.html +101 -0
  54. data/rdoc/files/lib/rails-footnotes/notes/routes_note_rb.html +101 -0
  55. data/rdoc/files/lib/rails-footnotes/notes/session_note_rb.html +101 -0
  56. data/rdoc/files/lib/rails-footnotes/notes/stylesheets_note_rb.html +101 -0
  57. data/rdoc/files/lib/rails-footnotes/notes/view_note_rb.html +101 -0
  58. data/rdoc/files/lib/rails-footnotes_rb.html +101 -0
  59. data/rdoc/fr_class_index.html +60 -0
  60. data/rdoc/fr_file_index.html +47 -0
  61. data/rdoc/fr_method_index.html +156 -0
  62. data/rdoc/index.html +24 -0
  63. data/rdoc/rdoc-style.css +208 -0
  64. data/scharfie-rails-footnotes.gemspec +142 -0
  65. metadata +66 -3
  66. data/rails-footnotes.gemspec +0 -46
@@ -0,0 +1,111 @@
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::Extensions::MockController</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::Extensions::MockController</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/filters_note_rb.html">
59
+ lib/rails-footnotes/notes/filters_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
+ Struct.new(:action_name);
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
+
86
+ </div>
87
+
88
+
89
+ <!-- if includes -->
90
+
91
+ <div id="section">
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <!-- if method_list -->
101
+
102
+
103
+ </div>
104
+
105
+
106
+ <div id="validator-badges">
107
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
108
+ </div>
109
+
110
+ </body>
111
+ </html>
@@ -0,0 +1,183 @@
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: Footnotes::Extensions::QueryAnalyzer</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">Footnotes::Extensions::QueryAnalyzer</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/queries_note_rb.html">
59
+ lib/rails-footnotes/notes/queries_note.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="#M000098">execute_with_analyzer</a>&nbsp;&nbsp;
84
+ <a href="#M000097">included</a>&nbsp;&nbsp;
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-M000097" class="method-detail">
107
+ <a name="M000097"></a>
108
+
109
+ <div class="method-heading">
110
+ <a href="#M000097" class="method-signature">
111
+ <span class="method-name">included</span><span class="method-args">(base)</span>
112
+ </a>
113
+ </div>
114
+
115
+ <div class="method-description">
116
+ <p><a class="source-toggle" href="#"
117
+ onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
118
+ <div class="method-source-code" id="M000097-source">
119
+ <pre>
120
+ <span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 98</span>
121
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">base</span>)
122
+ <span class="ruby-identifier">base</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
123
+ <span class="ruby-identifier">alias_method_chain</span> <span class="ruby-identifier">:execute</span>, <span class="ruby-identifier">:analyzer</span>
124
+ <span class="ruby-keyword kw">end</span>
125
+ <span class="ruby-keyword kw">end</span>
126
+ </pre>
127
+ </div>
128
+ </div>
129
+ </div>
130
+
131
+ <h3 class="section-bar">Public Instance methods</h3>
132
+
133
+ <div id="method-M000098" class="method-detail">
134
+ <a name="M000098"></a>
135
+
136
+ <div class="method-heading">
137
+ <a href="#M000098" class="method-signature">
138
+ <span class="method-name">execute_with_analyzer</span><span class="method-args">(query, name = nil)</span>
139
+ </a>
140
+ </div>
141
+
142
+ <div class="method-description">
143
+ <p><a class="source-toggle" href="#"
144
+ onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
145
+ <div class="method-source-code" id="M000098-source">
146
+ <pre>
147
+ <span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 104</span>
148
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute_with_analyzer</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>)
149
+ <span class="ruby-identifier">query_results</span> = <span class="ruby-keyword kw">nil</span>
150
+ <span class="ruby-identifier">time</span> = <span class="ruby-constant">Benchmark</span>.<span class="ruby-identifier">realtime</span> { <span class="ruby-identifier">query_results</span> = <span class="ruby-identifier">execute_without_analyzer</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">name</span>) }
151
+
152
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">query</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^(select|create|update|delete)\b/i</span>
153
+ <span class="ruby-identifier">type</span> = <span class="ruby-identifier">$&amp;</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">to_sym</span>
154
+ <span class="ruby-identifier">explain</span> = <span class="ruby-keyword kw">nil</span>
155
+
156
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">adapter_name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'MySQL'</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:select</span>
157
+ <span class="ruby-identifier">log_silence</span> <span class="ruby-keyword kw">do</span>
158
+ <span class="ruby-identifier">explain</span> = <span class="ruby-identifier">execute_without_analyzer</span>(<span class="ruby-node">&quot;EXPLAIN #{query}&quot;</span>, <span class="ruby-identifier">name</span>)
159
+ <span class="ruby-keyword kw">end</span>
160
+ <span class="ruby-keyword kw">end</span>
161
+ <span class="ruby-constant">Footnotes</span><span class="ruby-operator">::</span><span class="ruby-constant">Notes</span><span class="ruby-operator">::</span><span class="ruby-constant">QueriesNote</span>.<span class="ruby-identifier">sql</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Footnotes</span><span class="ruby-operator">::</span><span class="ruby-constant">Extensions</span><span class="ruby-operator">::</span><span class="ruby-constant">Sql</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">time</span>, <span class="ruby-identifier">query</span>, <span class="ruby-identifier">explain</span>)
162
+ <span class="ruby-keyword kw">end</span>
163
+
164
+ <span class="ruby-identifier">query_results</span>
165
+ <span class="ruby-keyword kw">end</span>
166
+ </pre>
167
+ </div>
168
+ </div>
169
+ </div>
170
+
171
+
172
+ </div>
173
+
174
+
175
+ </div>
176
+
177
+
178
+ <div id="validator-badges">
179
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
180
+ </div>
181
+
182
+ </body>
183
+ </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>Module: Footnotes::Extensions::Routes</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">Footnotes::Extensions::Routes</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
+ </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="#M000102">filtered_routes</a>&nbsp;&nbsp;
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-M000102" class="method-detail">
106
+ <a name="M000102"></a>
107
+
108
+ <div class="method-heading">
109
+ <a href="#M000102" class="method-signature">
110
+ <span class="method-name">filtered_routes</span><span class="method-args">(filter = {})</span>
111
+ </a>
112
+ </div>
113
+
114
+ <div class="method-description">
115
+ <p>
116
+ <a href="../Filter.html">Filter</a> routes according to the filter sent
117
+ </p>
118
+ <p><a class="source-toggle" href="#"
119
+ onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
120
+ <div class="method-source-code" id="M000102-source">
121
+ <pre>
122
+ <span class="ruby-comment cmt"># File lib/rails-footnotes/notes/routes_note.rb, line 45</span>
123
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">filtered_routes</span>(<span class="ruby-identifier">filter</span> = {})
124
+ <span class="ruby-keyword kw">return</span> [] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">filter</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
125
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">routes</span>.<span class="ruby-identifier">reject</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span>
126
+ <span class="ruby-identifier">filter_diff</span> = <span class="ruby-identifier">filter</span>.<span class="ruby-identifier">diff</span>(<span class="ruby-identifier">r</span>.<span class="ruby-identifier">requirements</span>)
127
+ <span class="ruby-identifier">route_diff</span> = <span class="ruby-identifier">r</span>.<span class="ruby-identifier">requirements</span>.<span class="ruby-identifier">diff</span>(<span class="ruby-identifier">filter</span>)
128
+ (<span class="ruby-identifier">filter_diff</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">filter</span>) <span class="ruby-operator">||</span> (<span class="ruby-identifier">filter_diff</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">route_diff</span>)
129
+ <span class="ruby-keyword kw">end</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>
@@ -0,0 +1,191 @@
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::Extensions::Sql</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::Extensions::Sql</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/queries_note_rb.html">
59
+ lib/rails-footnotes/notes/queries_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
+ 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="#M000103">new</a>&nbsp;&nbsp;
90
+ </div>
91
+ </div>
92
+
93
+ </div>
94
+
95
+
96
+ <!-- if includes -->
97
+
98
+ <div id="section">
99
+
100
+
101
+
102
+
103
+
104
+ <div id="attribute-list">
105
+ <h3 class="section-bar">Attributes</h3>
106
+
107
+ <div class="name-list">
108
+ <table>
109
+ <tr class="top-aligned-row context-row">
110
+ <td class="context-item-name">explain</td>
111
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
112
+ <td class="context-item-desc"></td>
113
+ </tr>
114
+ <tr class="top-aligned-row context-row">
115
+ <td class="context-item-name">name</td>
116
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
117
+ <td class="context-item-desc"></td>
118
+ </tr>
119
+ <tr class="top-aligned-row context-row">
120
+ <td class="context-item-name">query</td>
121
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
122
+ <td class="context-item-desc"></td>
123
+ </tr>
124
+ <tr class="top-aligned-row context-row">
125
+ <td class="context-item-name">time</td>
126
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
127
+ <td class="context-item-desc"></td>
128
+ </tr>
129
+ <tr class="top-aligned-row context-row">
130
+ <td class="context-item-name">trace</td>
131
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
132
+ <td class="context-item-desc"></td>
133
+ </tr>
134
+ <tr class="top-aligned-row context-row">
135
+ <td class="context-item-name">type</td>
136
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
137
+ <td class="context-item-desc"></td>
138
+ </tr>
139
+ </table>
140
+ </div>
141
+ </div>
142
+
143
+
144
+
145
+ <!-- if method_list -->
146
+ <div id="methods">
147
+ <h3 class="section-bar">Public Class methods</h3>
148
+
149
+ <div id="method-M000103" class="method-detail">
150
+ <a name="M000103"></a>
151
+
152
+ <div class="method-heading">
153
+ <a href="#M000103" class="method-signature">
154
+ <span class="method-name">new</span><span class="method-args">(type, name, time, query, explain)</span>
155
+ </a>
156
+ </div>
157
+
158
+ <div class="method-description">
159
+ <p><a class="source-toggle" href="#"
160
+ onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
161
+ <div class="method-source-code" id="M000103-source">
162
+ <pre>
163
+ <span class="ruby-comment cmt"># File lib/rails-footnotes/notes/queries_note.rb, line 85</span>
164
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">time</span>, <span class="ruby-identifier">query</span>, <span class="ruby-identifier">explain</span>)
165
+ <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">type</span>
166
+ <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
167
+ <span class="ruby-ivar">@time</span> = <span class="ruby-identifier">time</span>
168
+ <span class="ruby-ivar">@query</span> = <span class="ruby-identifier">query</span>
169
+ <span class="ruby-ivar">@explain</span> = <span class="ruby-identifier">explain</span>
170
+
171
+ <span class="ruby-comment cmt"># Strip, select those ones from app and reject first two, because they are from the plugin</span>
172
+ <span class="ruby-ivar">@trace</span> = <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">caller</span>.<span class="ruby-identifier">collect</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">:strip</span>).<span class="ruby-identifier">select</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">i</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-node">/^#{RAILS_ROOT}\//i</span><span class="ruby-identifier">m</span>, <span class="ruby-value str">''</span>) }[<span class="ruby-value">2</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
173
+ <span class="ruby-keyword kw">end</span>
174
+ </pre>
175
+ </div>
176
+ </div>
177
+ </div>
178
+
179
+
180
+ </div>
181
+
182
+
183
+ </div>
184
+
185
+
186
+ <div id="validator-badges">
187
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
188
+ </div>
189
+
190
+ </body>
191
+ </html>