notifyhub 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +7 -7
- data/doc/Notify.html +18 -18
- data/doc/NotifyHub/NotFound.html +2 -2
- data/doc/NotifyHub/Redefining.html +2 -2
- data/doc/NotifyHub.html +171 -100
- data/doc/NotifySet.html +52 -52
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +5 -2
- data/doc/file.README.html +11 -11
- data/doc/index.html +11 -11
- data/doc/method_list.html +16 -10
- data/doc/top-level-namespace.html +1 -1
- data/lib/notifyhub.rb +55 -46
- data/test/test_notifyhub.rb +11 -47
- metadata +26 -36
- data/Rakefile +0 -28
data/doc/NotifyHub.html
CHANGED
@@ -94,7 +94,9 @@
|
|
94
94
|
|
95
95
|
|
96
96
|
<dt class="r2 last">Defined in:</dt>
|
97
|
-
<dd class="r2 last">lib/notifyhub.rb
|
97
|
+
<dd class="r2 last">lib/notifyhub.rb<span class="defines">,<br />
|
98
|
+
lib/version.rb</span>
|
99
|
+
</dd>
|
98
100
|
|
99
101
|
</dl>
|
100
102
|
<div class="clear"></div>
|
@@ -102,19 +104,19 @@
|
|
102
104
|
<h2>Overview</h2><div class="docstring">
|
103
105
|
<div class="discussion">
|
104
106
|
|
105
|
-
<p>NotifyHub is a callback facility. NotifyHub is used by the informer to
|
106
|
-
notify clients about arbitrary events in the informer. NotifyHub contains
|
107
|
-
notification sets (NotifySet).</p>
|
107
|
+
<p><span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span> is a callback facility. <span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span> is used by the informer to
|
108
|
+
notify clients about arbitrary events in the informer. <span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span> contains
|
109
|
+
notification sets (<span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span>).</p>
|
108
110
|
|
109
|
-
<p>NotifySet is identified by set ID and it can include one or many
|
110
|
-
notifications (Notify). Client defines the action performed at
|
111
|
-
(callback). Informer activates the notification when
|
112
|
-
occur.</p>
|
111
|
+
<p><span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span> is identified by set ID and it can include one or many
|
112
|
+
notifications (<span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span>). Client defines the action performed at
|
113
|
+
notification (callback). Informer activates the notification when
|
114
|
+
notification events occur.</p>
|
113
115
|
|
114
|
-
<p>Notifications can be enabled/disabled on different levels (NotifyHub
|
115
|
-
NotifySet
|
116
|
+
<p>Notifications can be enabled/disabled on different levels (<span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span>,
|
117
|
+
<span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span>, and <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span>).</p>
|
116
118
|
|
117
|
-
<p>
|
119
|
+
<p>Usage example:</p>
|
118
120
|
|
119
121
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>notifyhub</span><span class='tstring_end'>'</span></span>
|
120
122
|
|
@@ -125,7 +127,7 @@ NotifySet, and Notify).</p>
|
|
125
127
|
</span> <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:hub</span>
|
126
128
|
|
127
129
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
128
|
-
<span class='comment'># Create NotifyHub.
|
130
|
+
<span class='comment'># Create NotifyHub with 3 callbacks.
|
129
131
|
</span> <span class='ivar'>@hub</span> <span class='op'>=</span> <span class='const'>NotifyHub</span><span class='period'>.</span><span class='id identifier rubyid_declare'>declare</span><span class='lparen'>(</span> <span class='symbol'>:store</span><span class='comma'>,</span> <span class='symbol'>:load</span><span class='comma'>,</span> <span class='symbol'>:na</span> <span class='rparen'>)</span>
|
130
132
|
<span class='kw'>end</span>
|
131
133
|
|
@@ -151,13 +153,18 @@ NotifySet, and Notify).</p>
|
|
151
153
|
|
152
154
|
<span class='comment'># Setup notify action for load.
|
153
155
|
</span><span class='id identifier rubyid_storage'>storage</span><span class='period'>.</span><span class='id identifier rubyid_hub'>hub</span><span class='lbracket'>[</span> <span class='symbol'>:load</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_data'>data</span><span class='op'>|</span>
|
154
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>load:
|
156
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>load: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_data'>data</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
155
157
|
<span class='kw'>end</span>
|
156
158
|
|
157
159
|
<span class='comment'># Use storage and get notifications.
|
158
160
|
</span><span class='id identifier rubyid_storage'>storage</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>my data</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
159
161
|
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_storage'>storage</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span></code></pre>
|
160
162
|
|
163
|
+
<p>Produces:</p>
|
164
|
+
|
165
|
+
<pre class="code ruby"><code class="ruby">store: my data
|
166
|
+
load: my data</code></pre>
|
167
|
+
|
161
168
|
|
162
169
|
</div>
|
163
170
|
</div>
|
@@ -175,6 +182,18 @@ NotifySet, and Notify).</p>
|
|
175
182
|
|
176
183
|
</p>
|
177
184
|
|
185
|
+
<h2>Constant Summary</h2>
|
186
|
+
|
187
|
+
<dl class="constants">
|
188
|
+
|
189
|
+
<dt id="VERSION-constant" class="">VERSION =
|
190
|
+
|
191
|
+
</dt>
|
192
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.0.3</span><span class='tstring_end'>"</span></span></pre></dd>
|
193
|
+
|
194
|
+
</dl>
|
195
|
+
|
196
|
+
|
178
197
|
|
179
198
|
|
180
199
|
|
@@ -239,7 +258,7 @@ NotifySet, and Notify).</p>
|
|
239
258
|
|
240
259
|
|
241
260
|
<span class="summary_desc"><div class='inline'>
|
242
|
-
<p>Create NotifyHub and with autodeclare for sets.</p>
|
261
|
+
<p>Create <span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span> and with autodeclare for sets.</p>
|
243
262
|
</div></span>
|
244
263
|
|
245
264
|
</li>
|
@@ -263,7 +282,7 @@ NotifySet, and Notify).</p>
|
|
263
282
|
|
264
283
|
|
265
284
|
<span class="summary_desc"><div class='inline'>
|
266
|
-
<p>Create NotifyHub and run block with it.</p>
|
285
|
+
<p>Create <span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span> and run block with it.</p>
|
267
286
|
</div></span>
|
268
287
|
|
269
288
|
</li>
|
@@ -287,9 +306,31 @@ NotifySet, and Notify).</p>
|
|
287
306
|
|
288
307
|
|
289
308
|
<span class="summary_desc"><div class='inline'>
|
290
|
-
<p>Create NotifyHub and declare sets.</p>
|
309
|
+
<p>Create <span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span> and declare sets.</p>
|
291
310
|
</div></span>
|
292
311
|
|
312
|
+
</li>
|
313
|
+
|
314
|
+
|
315
|
+
<li class="public ">
|
316
|
+
<span class="summary_signature">
|
317
|
+
|
318
|
+
<a href="#version-class_method" title="version (class method)">+ (Object) <strong>version</strong> </a>
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
</span>
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
333
|
+
|
293
334
|
</li>
|
294
335
|
|
295
336
|
|
@@ -320,7 +361,7 @@ NotifySet, and Notify).</p>
|
|
320
361
|
|
321
362
|
|
322
363
|
<span class="summary_desc"><div class='inline'>
|
323
|
-
<p>Get NotifySet by ID.</p>
|
364
|
+
<p>Get <span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span> by ID.</p>
|
324
365
|
</div></span>
|
325
366
|
|
326
367
|
</li>
|
@@ -346,7 +387,7 @@ NotifySet, and Notify).</p>
|
|
346
387
|
|
347
388
|
|
348
389
|
<span class="summary_desc"><div class='inline'>
|
349
|
-
<p>Register action to NotifySet
|
390
|
+
<p>Register action to <span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span>.</p>
|
350
391
|
</div></span>
|
351
392
|
|
352
393
|
</li>
|
@@ -370,7 +411,7 @@ NotifySet, and Notify).</p>
|
|
370
411
|
|
371
412
|
|
372
413
|
<span class="summary_desc"><div class='inline'>
|
373
|
-
<p>Declare Notify by set.</p>
|
414
|
+
<p>Declare <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> by set.</p>
|
374
415
|
</div></span>
|
375
416
|
|
376
417
|
</li>
|
@@ -394,7 +435,7 @@ NotifySet, and Notify).</p>
|
|
394
435
|
|
395
436
|
|
396
437
|
<span class="summary_desc"><div class='inline'>
|
397
|
-
<p>Enable/disable Notify set or all if not set.</p>
|
438
|
+
<p>Enable/disable <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> set or all if not set.</p>
|
398
439
|
</div></span>
|
399
440
|
|
400
441
|
</li>
|
@@ -418,7 +459,7 @@ NotifySet, and Notify).</p>
|
|
418
459
|
|
419
460
|
|
420
461
|
<span class="summary_desc"><div class='inline'>
|
421
|
-
<p>Get list of NotifySet IDs.</p>
|
462
|
+
<p>Get list of <span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span> IDs.</p>
|
422
463
|
</div></span>
|
423
464
|
|
424
465
|
</li>
|
@@ -468,7 +509,7 @@ NotifySet, and Notify).</p>
|
|
468
509
|
|
469
510
|
|
470
511
|
<span class="summary_desc"><div class='inline'>
|
471
|
-
<p>Run all notifiers in Notify set.</p>
|
512
|
+
<p>Run all notifiers in <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> set.</p>
|
472
513
|
</div></span>
|
473
514
|
|
474
515
|
</li>
|
@@ -550,14 +591,14 @@ NotifySet, and Notify).</p>
|
|
550
591
|
<pre class="lines">
|
551
592
|
|
552
593
|
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
594
|
+
111
|
595
|
+
112
|
596
|
+
113
|
597
|
+
114
|
598
|
+
115</pre>
|
558
599
|
</td>
|
559
600
|
<td>
|
560
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
601
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 111</span>
|
561
602
|
|
562
603
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span>
|
563
604
|
<span class='ivar'>@autodeclare</span> <span class='op'>=</span> <span class='kw'>false</span>
|
@@ -602,12 +643,12 @@ NotifySet, and Notify).</p>
|
|
602
643
|
<pre class="lines">
|
603
644
|
|
604
645
|
|
605
|
-
|
606
|
-
|
607
|
-
|
646
|
+
67
|
647
|
+
68
|
648
|
+
69</pre>
|
608
649
|
</td>
|
609
650
|
<td>
|
610
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
651
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 67</span>
|
611
652
|
|
612
653
|
<span class='kw'>def</span> <span class='id identifier rubyid_autodeclare'>autodeclare</span>
|
613
654
|
<span class='ivar'>@autodeclare</span>
|
@@ -636,8 +677,8 @@ NotifySet, and Notify).</p>
|
|
636
677
|
</h3><div class="docstring">
|
637
678
|
<div class="discussion">
|
638
679
|
|
639
|
-
<p>Create NotifyHub and with autodeclare for sets. Declare sets
|
640
|
-
at action registration.</p>
|
680
|
+
<p>Create <span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span> and with autodeclare for sets. Declare sets
|
681
|
+
automatically at action registration.</p>
|
641
682
|
|
642
683
|
|
643
684
|
</div>
|
@@ -671,14 +712,14 @@ at action registration.</p>
|
|
671
712
|
<pre class="lines">
|
672
713
|
|
673
714
|
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
715
|
+
89
|
716
|
+
90
|
717
|
+
91
|
718
|
+
92
|
719
|
+
93</pre>
|
679
720
|
</td>
|
680
721
|
<td>
|
681
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
722
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 89</span>
|
682
723
|
|
683
724
|
<span class='kw'>def</span> <span class='const'>NotifyHub</span><span class='period'>.</span><span class='id identifier rubyid_auto'>auto</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span>
|
684
725
|
<span class='id identifier rubyid_n'>n</span> <span class='op'>=</span> <span class='const'>NotifyHub</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span>
|
@@ -702,7 +743,7 @@ at action registration.</p>
|
|
702
743
|
</h3><div class="docstring">
|
703
744
|
<div class="discussion">
|
704
745
|
|
705
|
-
<p>Create NotifyHub and run block with it.</p>
|
746
|
+
<p>Create <span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span> and run block with it.</p>
|
706
747
|
|
707
748
|
|
708
749
|
</div>
|
@@ -734,16 +775,16 @@ at action registration.</p>
|
|
734
775
|
<pre class="lines">
|
735
776
|
|
736
777
|
|
737
|
-
95
|
738
|
-
96
|
739
|
-
97
|
740
|
-
98
|
741
778
|
99
|
742
779
|
100
|
743
|
-
101
|
780
|
+
101
|
781
|
+
102
|
782
|
+
103
|
783
|
+
104
|
784
|
+
105</pre>
|
744
785
|
</td>
|
745
786
|
<td>
|
746
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
787
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 99</span>
|
747
788
|
|
748
789
|
<span class='kw'>def</span> <span class='const'>NotifyHub</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
749
790
|
<span class='id identifier rubyid_cg'>cg</span> <span class='op'>=</span> <span class='const'>NotifyHub</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
@@ -769,7 +810,7 @@ at action registration.</p>
|
|
769
810
|
</h3><div class="docstring">
|
770
811
|
<div class="discussion">
|
771
812
|
|
772
|
-
<p>Create NotifyHub and declare sets.</p>
|
813
|
+
<p>Create <span class='object_link'><a href="" title="NotifyHub (class)">NotifyHub</a></span> and declare sets.</p>
|
773
814
|
|
774
815
|
|
775
816
|
</div>
|
@@ -803,12 +844,12 @@ at action registration.</p>
|
|
803
844
|
<pre class="lines">
|
804
845
|
|
805
846
|
|
806
|
-
|
807
|
-
|
808
|
-
|
847
|
+
80
|
848
|
+
81
|
849
|
+
82</pre>
|
809
850
|
</td>
|
810
851
|
<td>
|
811
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
852
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 80</span>
|
812
853
|
|
813
854
|
<span class='kw'>def</span> <span class='const'>NotifyHub</span><span class='period'>.</span><span class='id identifier rubyid_declare'>declare</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span>
|
814
855
|
<span class='const'>NotifyHub</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span>
|
@@ -816,6 +857,36 @@ at action registration.</p>
|
|
816
857
|
</td>
|
817
858
|
</tr>
|
818
859
|
</table>
|
860
|
+
</div>
|
861
|
+
|
862
|
+
<div class="method_details ">
|
863
|
+
<h3 class="signature " id="version-class_method">
|
864
|
+
|
865
|
+
+ (<tt>Object</tt>) <strong>version</strong>
|
866
|
+
|
867
|
+
|
868
|
+
|
869
|
+
|
870
|
+
|
871
|
+
</h3><table class="source_code">
|
872
|
+
<tr>
|
873
|
+
<td>
|
874
|
+
<pre class="lines">
|
875
|
+
|
876
|
+
|
877
|
+
3
|
878
|
+
4
|
879
|
+
5</pre>
|
880
|
+
</td>
|
881
|
+
<td>
|
882
|
+
<pre class="code"><span class="info file"># File 'lib/version.rb', line 3</span>
|
883
|
+
|
884
|
+
<span class='kw'>def</span> <span class='const'>NotifyHub</span><span class='period'>.</span><span class='id identifier rubyid_version'>version</span>
|
885
|
+
<span class='const'>NotifyHub</span><span class='op'>::</span><span class='const'>VERSION</span>
|
886
|
+
<span class='kw'>end</span></pre>
|
887
|
+
</td>
|
888
|
+
</tr>
|
889
|
+
</table>
|
819
890
|
</div>
|
820
891
|
|
821
892
|
</div>
|
@@ -836,7 +907,7 @@ at action registration.</p>
|
|
836
907
|
</h3><div class="docstring">
|
837
908
|
<div class="discussion">
|
838
909
|
|
839
|
-
<p>Get NotifySet by ID.</p>
|
910
|
+
<p>Get <span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span> by ID.</p>
|
840
911
|
|
841
912
|
|
842
913
|
</div>
|
@@ -888,14 +959,14 @@ at action registration.</p>
|
|
888
959
|
<pre class="lines">
|
889
960
|
|
890
961
|
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
962
|
+
190
|
963
|
+
191
|
964
|
+
192
|
965
|
+
193
|
966
|
+
194</pre>
|
896
967
|
</td>
|
897
968
|
<td>
|
898
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
969
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 190</span>
|
899
970
|
|
900
971
|
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span>
|
901
972
|
<span class='id identifier rubyid_useSet'>useSet</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_set'>set</span><span class='op'>|</span>
|
@@ -923,7 +994,7 @@ at action registration.</p>
|
|
923
994
|
</h3><div class="docstring">
|
924
995
|
<div class="discussion">
|
925
996
|
|
926
|
-
<p>Register action to NotifySet. Multiple notifies can exist per set.</p>
|
997
|
+
<p>Register action to <span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span>. Multiple notifies can exist per set.</p>
|
927
998
|
|
928
999
|
|
929
1000
|
</div>
|
@@ -973,18 +1044,18 @@ at action registration.</p>
|
|
973
1044
|
<pre class="lines">
|
974
1045
|
|
975
1046
|
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
1047
|
+
137
|
1048
|
+
138
|
1049
|
+
139
|
1050
|
+
140
|
1051
|
+
141</pre>
|
981
1052
|
</td>
|
982
1053
|
<td>
|
983
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
1054
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 137</span>
|
984
1055
|
|
985
1056
|
<span class='kw'>def</span> <span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_action'>action</span> <span class='rparen'>)</span>
|
986
1057
|
<span class='id identifier rubyid_useSet'>useSet</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_set'>set</span><span class='op'>|</span>
|
987
|
-
<span class='id identifier rubyid_set'>set</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_action'>action</span> <span class='rparen'>)</span>
|
1058
|
+
<span class='id identifier rubyid_set'>set</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_action'>action</span> <span class='rparen'>)</span>
|
988
1059
|
<span class='kw'>end</span>
|
989
1060
|
<span class='kw'>end</span></pre>
|
990
1061
|
</td>
|
@@ -1004,7 +1075,7 @@ at action registration.</p>
|
|
1004
1075
|
</h3><div class="docstring">
|
1005
1076
|
<div class="discussion">
|
1006
1077
|
|
1007
|
-
<p>Declare Notify by set. Multiple notifiers can exist per set.</p>
|
1078
|
+
<p>Declare <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> by set. Multiple notifiers can exist per set.</p>
|
1008
1079
|
|
1009
1080
|
|
1010
1081
|
</div>
|
@@ -1038,18 +1109,18 @@ at action registration.</p>
|
|
1038
1109
|
<pre class="lines">
|
1039
1110
|
|
1040
1111
|
|
1041
|
-
117
|
1042
|
-
118
|
1043
|
-
119
|
1044
|
-
120
|
1045
1112
|
121
|
1046
1113
|
122
|
1047
1114
|
123
|
1048
1115
|
124
|
1049
|
-
125
|
1116
|
+
125
|
1117
|
+
126
|
1118
|
+
127
|
1119
|
+
128
|
1120
|
+
129</pre>
|
1050
1121
|
</td>
|
1051
1122
|
<td>
|
1052
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
1123
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 121</span>
|
1053
1124
|
|
1054
1125
|
<span class='kw'>def</span> <span class='id identifier rubyid_declare'>declare</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span>
|
1055
1126
|
<span class='id identifier rubyid_id'>id</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
@@ -1077,7 +1148,7 @@ at action registration.</p>
|
|
1077
1148
|
</h3><div class="docstring">
|
1078
1149
|
<div class="discussion">
|
1079
1150
|
|
1080
|
-
<p>Enable/disable Notify set or all if not set.</p>
|
1151
|
+
<p>Enable/disable <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> set or all if not set.</p>
|
1081
1152
|
|
1082
1153
|
|
1083
1154
|
</div>
|
@@ -1127,20 +1198,20 @@ at action registration.</p>
|
|
1127
1198
|
<pre class="lines">
|
1128
1199
|
|
1129
1200
|
|
1130
|
-
158
|
1131
|
-
159
|
1132
|
-
160
|
1133
|
-
161
|
1134
1201
|
162
|
1135
1202
|
163
|
1136
1203
|
164
|
1137
1204
|
165
|
1138
1205
|
166
|
1139
1206
|
167
|
1140
|
-
168
|
1207
|
+
168
|
1208
|
+
169
|
1209
|
+
170
|
1210
|
+
171
|
1211
|
+
172</pre>
|
1141
1212
|
</td>
|
1142
1213
|
<td>
|
1143
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
1214
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 162</span>
|
1144
1215
|
|
1145
1216
|
<span class='kw'>def</span> <span class='id identifier rubyid_enable'>enable</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
1146
1217
|
<span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span>
|
@@ -1170,7 +1241,7 @@ at action registration.</p>
|
|
1170
1241
|
</h3><div class="docstring">
|
1171
1242
|
<div class="discussion">
|
1172
1243
|
|
1173
|
-
<p>Get list of NotifySet IDs.</p>
|
1244
|
+
<p>Get list of <span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span> IDs.</p>
|
1174
1245
|
|
1175
1246
|
|
1176
1247
|
</div>
|
@@ -1202,12 +1273,12 @@ at action registration.</p>
|
|
1202
1273
|
<pre class="lines">
|
1203
1274
|
|
1204
1275
|
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1276
|
+
200
|
1277
|
+
201
|
1278
|
+
202</pre>
|
1208
1279
|
</td>
|
1209
1280
|
<td>
|
1210
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
1281
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 200</span>
|
1211
1282
|
|
1212
1283
|
<span class='kw'>def</span> <span class='id identifier rubyid_ids'>ids</span>
|
1213
1284
|
<span class='ivar'>@set</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span>
|
@@ -1229,7 +1300,7 @@ at action registration.</p>
|
|
1229
1300
|
</h3><div class="docstring">
|
1230
1301
|
<div class="discussion">
|
1231
1302
|
|
1232
|
-
<p>Run all notifiers in Notify set.</p>
|
1303
|
+
<p>Run all notifiers in <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> set.</p>
|
1233
1304
|
|
1234
1305
|
|
1235
1306
|
</div>
|
@@ -1279,14 +1350,14 @@ at action registration.</p>
|
|
1279
1350
|
<pre class="lines">
|
1280
1351
|
|
1281
1352
|
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1353
|
+
179
|
1354
|
+
180
|
1355
|
+
181
|
1356
|
+
182
|
1357
|
+
183</pre>
|
1287
1358
|
</td>
|
1288
1359
|
<td>
|
1289
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
1360
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 179</span>
|
1290
1361
|
|
1291
1362
|
<span class='kw'>def</span> <span class='id identifier rubyid_notify'>notify</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
1292
1363
|
<span class='id identifier rubyid_withSet'>withSet</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_set'>set</span><span class='op'>|</span>
|
@@ -1362,14 +1433,14 @@ at action registration.</p>
|
|
1362
1433
|
<pre class="lines">
|
1363
1434
|
|
1364
1435
|
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1436
|
+
151
|
1437
|
+
152
|
1438
|
+
153
|
1439
|
+
154
|
1440
|
+
155</pre>
|
1370
1441
|
</td>
|
1371
1442
|
<td>
|
1372
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
1443
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 151</span>
|
1373
1444
|
|
1374
1445
|
<span class='kw'>def</span> <span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_notify'>notify</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
1375
1446
|
<span class='id identifier rubyid_withSet'>withSet</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span> <span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_set'>set</span><span class='op'>|</span>
|
@@ -1386,7 +1457,7 @@ at action registration.</p>
|
|
1386
1457
|
</div>
|
1387
1458
|
|
1388
1459
|
<div id="footer">
|
1389
|
-
Generated on
|
1460
|
+
Generated on Sun Nov 23 14:59:06 2014 by
|
1390
1461
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1391
1462
|
0.8.6.1 (ruby-1.9.3).
|
1392
1463
|
</div>
|