rslt 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/.travis.yml +10 -0
  2. data/Gemfile +14 -0
  3. data/Gemfile.lock +53 -0
  4. data/History.txt +4 -0
  5. data/PostInstall.txt +1 -0
  6. data/README.md +67 -0
  7. data/Rakefile +55 -0
  8. data/TODO +3 -0
  9. data/lib/rslt/element_wrapper.rb +37 -0
  10. data/lib/rslt/rule.rb +45 -0
  11. data/lib/rslt/stylesheet.rb +94 -0
  12. data/lib/rslt.rb +9 -0
  13. data/rdoc/RSLT/ElementWrapper.html +357 -0
  14. data/rdoc/RSLT/Rule.html +379 -0
  15. data/rdoc/RSLT/Stylesheet.html +311 -0
  16. data/rdoc/RSLT.html +132 -0
  17. data/rdoc/created.rid +6 -0
  18. data/rdoc/images/add.png +0 -0
  19. data/rdoc/images/brick.png +0 -0
  20. data/rdoc/images/brick_link.png +0 -0
  21. data/rdoc/images/bug.png +0 -0
  22. data/rdoc/images/bullet_black.png +0 -0
  23. data/rdoc/images/bullet_toggle_minus.png +0 -0
  24. data/rdoc/images/bullet_toggle_plus.png +0 -0
  25. data/rdoc/images/date.png +0 -0
  26. data/rdoc/images/delete.png +0 -0
  27. data/rdoc/images/find.png +0 -0
  28. data/rdoc/images/loadingAnimation.gif +0 -0
  29. data/rdoc/images/macFFBgHack.png +0 -0
  30. data/rdoc/images/package.png +0 -0
  31. data/rdoc/images/page_green.png +0 -0
  32. data/rdoc/images/page_white_text.png +0 -0
  33. data/rdoc/images/page_white_width.png +0 -0
  34. data/rdoc/images/plugin.png +0 -0
  35. data/rdoc/images/ruby.png +0 -0
  36. data/rdoc/images/tag_blue.png +0 -0
  37. data/rdoc/images/tag_green.png +0 -0
  38. data/rdoc/images/transparent.png +0 -0
  39. data/rdoc/images/wrench.png +0 -0
  40. data/rdoc/images/wrench_orange.png +0 -0
  41. data/rdoc/images/zoom.png +0 -0
  42. data/rdoc/index.html +75 -0
  43. data/rdoc/js/darkfish.js +153 -0
  44. data/rdoc/js/jquery.js +18 -0
  45. data/rdoc/js/navigation.js +142 -0
  46. data/rdoc/js/search.js +94 -0
  47. data/rdoc/js/search_index.js +1 -0
  48. data/rdoc/js/searcher.js +228 -0
  49. data/rdoc/rdoc.css +543 -0
  50. data/rdoc/table_of_contents.html +83 -0
  51. data/rslt.gemspec +150 -0
  52. data/script/console +10 -0
  53. data/script/destroy +14 -0
  54. data/script/generate +14 -0
  55. data/spec/element_wrapper_spec.rb +22 -0
  56. data/spec/excesselt_spec.rb +112 -0
  57. data/spec/spec_helper.rb +6 -0
  58. data/spec/support/matchers/dom_matcher.rb +45 -0
  59. data/tasks/rspec.rake +13 -0
  60. metadata +307 -0
@@ -0,0 +1,357 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class RSLT::ElementWrapper - &lt;%= project_name %&gt; 1.1.8</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/rslt/element_wrapper.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link">Object
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-c-new">::new</a>
74
+
75
+ <li><a href="#method-i-add">#add</a>
76
+
77
+ <li><a href="#method-i-child_content">#child_content</a>
78
+
79
+ <li><a href="#method-i-error">#error</a>
80
+
81
+ <li><a href="#method-i-method_missing">#method_missing</a>
82
+
83
+ </ul>
84
+ </nav>
85
+
86
+ </div>
87
+
88
+ <div id="project-metadata">
89
+
90
+ <nav id="classindex-section" class="section project-section">
91
+ <h3 class="section-header">Class and Module Index</h3>
92
+
93
+ <ul class="link-list">
94
+
95
+ <li><a href="../RSLT.html">RSLT</a>
96
+
97
+ <li><a href="../RSLT/ElementWrapper.html">RSLT::ElementWrapper</a>
98
+
99
+ <li><a href="../RSLT/Rule.html">RSLT::Rule</a>
100
+
101
+ <li><a href="../RSLT/Stylesheet.html">RSLT::Stylesheet</a>
102
+
103
+ </ul>
104
+ </nav>
105
+
106
+ </div>
107
+ </nav>
108
+
109
+ <div id="documentation">
110
+ <h1 class="class">class RSLT::ElementWrapper</h1>
111
+
112
+ <div id="description" class="description">
113
+
114
+ </div><!-- description -->
115
+
116
+
117
+
118
+
119
+ <section id="5Buntitled-5D" class="documentation-section">
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ <!-- Attributes -->
128
+ <section id="attribute-method-details" class="method-section section">
129
+ <h3 class="section-header">Attributes</h3>
130
+
131
+
132
+ <div id="attribute-i-builder" class="method-detail">
133
+ <div class="method-heading attribute-method-heading">
134
+ <span class="method-name">builder</span><span
135
+ class="attribute-access-type">[R]</span>
136
+ </div>
137
+
138
+ <div class="method-description">
139
+
140
+
141
+
142
+ </div>
143
+ </div>
144
+
145
+ <div id="attribute-i-element" class="method-detail">
146
+ <div class="method-heading attribute-method-heading">
147
+ <span class="method-name">element</span><span
148
+ class="attribute-access-type">[R]</span>
149
+ </div>
150
+
151
+ <div class="method-description">
152
+
153
+
154
+
155
+ </div>
156
+ </div>
157
+
158
+ <div id="attribute-i-stylesheet" class="method-detail">
159
+ <div class="method-heading attribute-method-heading">
160
+ <span class="method-name">stylesheet</span><span
161
+ class="attribute-access-type">[R]</span>
162
+ </div>
163
+
164
+ <div class="method-description">
165
+
166
+
167
+
168
+ </div>
169
+ </div>
170
+
171
+ </section><!-- attribute-method-details -->
172
+
173
+
174
+ <!-- Methods -->
175
+
176
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
177
+ <h3 class="section-header">Public Class Methods</h3>
178
+
179
+
180
+ <div id="method-c-new" class="method-detail ">
181
+
182
+ <div class="method-heading">
183
+ <span class="method-name">new</span><span
184
+ class="method-args">(stylesheet, element, builder)</span>
185
+ <span class="method-click-advice">click to toggle source</span>
186
+ </div>
187
+
188
+
189
+ <div class="method-description">
190
+
191
+
192
+
193
+
194
+
195
+ <div class="method-source-code" id="new-source">
196
+ <pre><span class="ruby-comment"># File lib/rslt/element_wrapper.rb, line 6</span>
197
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">stylesheet</span>, <span class="ruby-identifier">element</span>, <span class="ruby-identifier">builder</span>)
198
+ <span class="ruby-ivar">@stylesheet</span> = <span class="ruby-identifier">stylesheet</span>
199
+ <span class="ruby-ivar">@element</span> = <span class="ruby-identifier">element</span>
200
+ <span class="ruby-ivar">@builder</span> = <span class="ruby-identifier">builder</span>
201
+ <span class="ruby-keyword">end</span></pre>
202
+ </div><!-- new-source -->
203
+
204
+ </div>
205
+
206
+
207
+
208
+
209
+ </div><!-- new-method -->
210
+
211
+
212
+ </section><!-- public-class-method-details -->
213
+
214
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
215
+ <h3 class="section-header">Public Instance Methods</h3>
216
+
217
+
218
+ <div id="method-i-add" class="method-detail ">
219
+
220
+ <div class="method-heading">
221
+ <span class="method-name">add</span><span
222
+ class="method-args">(*content)</span>
223
+ <span class="method-click-advice">click to toggle source</span>
224
+ </div>
225
+
226
+
227
+ <div class="method-description">
228
+
229
+
230
+
231
+
232
+
233
+ <div class="method-source-code" id="add-source">
234
+ <pre><span class="ruby-comment"># File lib/rslt/element_wrapper.rb, line 27</span>
235
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">add</span>(*<span class="ruby-identifier">content</span>)
236
+ <span class="ruby-ivar">@builder</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">content</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">''</span>)
237
+ <span class="ruby-keyword">end</span></pre>
238
+ </div><!-- add-source -->
239
+
240
+ </div>
241
+
242
+
243
+
244
+
245
+ </div><!-- add-method -->
246
+
247
+
248
+ <div id="method-i-child_content" class="method-detail ">
249
+
250
+ <div class="method-heading">
251
+ <span class="method-name">child_content</span><span
252
+ class="method-args">(selector=nil)</span>
253
+ <span class="method-click-advice">click to toggle source</span>
254
+ </div>
255
+
256
+
257
+ <div class="method-description">
258
+
259
+
260
+
261
+
262
+
263
+ <div class="method-source-code" id="child_content-source">
264
+ <pre><span class="ruby-comment"># File lib/rslt/element_wrapper.rb, line 12</span>
265
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">child_content</span>(<span class="ruby-identifier">selector</span>=<span class="ruby-keyword">nil</span>)
266
+ <span class="ruby-identifier">elements</span> = <span class="ruby-identifier">selector</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@element</span>.<span class="ruby-identifier">css</span>(<span class="ruby-identifier">selector</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@element</span>.<span class="ruby-identifier">children</span>
267
+ <span class="ruby-identifier">elements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">child</span><span class="ruby-operator">|</span>
268
+ <span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">generate_element</span>(<span class="ruby-identifier">child</span>)
269
+ <span class="ruby-keyword">end</span>
270
+ <span class="ruby-keyword">end</span></pre>
271
+ </div><!-- child_content-source -->
272
+
273
+ </div>
274
+
275
+
276
+
277
+
278
+ </div><!-- child_content-method -->
279
+
280
+
281
+ <div id="method-i-error" class="method-detail ">
282
+
283
+ <div class="method-heading">
284
+ <span class="method-name">error</span><span
285
+ class="method-args">(string)</span>
286
+ <span class="method-click-advice">click to toggle source</span>
287
+ </div>
288
+
289
+
290
+ <div class="method-description">
291
+
292
+
293
+
294
+
295
+
296
+ <div class="method-source-code" id="error-source">
297
+ <pre><span class="ruby-comment"># File lib/rslt/element_wrapper.rb, line 31</span>
298
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">error</span>(<span class="ruby-identifier">string</span>)
299
+ <span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">string</span>
300
+ <span class="ruby-keyword">end</span></pre>
301
+ </div><!-- error-source -->
302
+
303
+ </div>
304
+
305
+
306
+
307
+
308
+ </div><!-- error-method -->
309
+
310
+
311
+ <div id="method-i-method_missing" class="method-detail ">
312
+
313
+ <div class="method-heading">
314
+ <span class="method-name">method_missing</span><span
315
+ class="method-args">(sym, *args)</span>
316
+ <span class="method-click-advice">click to toggle source</span>
317
+ </div>
318
+
319
+
320
+ <div class="method-description">
321
+
322
+
323
+
324
+
325
+
326
+ <div class="method-source-code" id="method_missing-source">
327
+ <pre><span class="ruby-comment"># File lib/rslt/element_wrapper.rb, line 19</span>
328
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">sym</span>, *<span class="ruby-identifier">args</span>)
329
+ <span class="ruby-keyword">begin</span>
330
+ <span class="ruby-ivar">@element</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">sym</span>, *<span class="ruby-identifier">args</span>)
331
+ <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
332
+ <span class="ruby-identifier">raise</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">exception</span>(<span class="ruby-node">&quot;Error delegating method '#{sym}' to #{@element.class.name}: #{e.message}\n\n#{e.backtrace.join(&quot;\n&quot;)}&quot;</span>)
333
+ <span class="ruby-keyword">end</span>
334
+ <span class="ruby-keyword">end</span></pre>
335
+ </div><!-- method_missing-source -->
336
+
337
+ </div>
338
+
339
+
340
+
341
+
342
+ </div><!-- method_missing-method -->
343
+
344
+
345
+ </section><!-- public-instance-method-details -->
346
+
347
+ </section><!-- 5Buntitled-5D -->
348
+
349
+ </div><!-- documentation -->
350
+
351
+
352
+ <footer id="validator-badges">
353
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
354
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
355
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
356
+ </footer>
357
+