riaction 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardoc/checksums +11 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +12 -8
- data/README.md +6 -1
- data/db/riaction.db +0 -0
- data/doc/Riaction/ConfigurationError.html +116 -0
- data/doc/Riaction/Constants.html +389 -0
- data/doc/Riaction/CrudEventCallback.html +402 -0
- data/doc/Riaction/EventPerformer.html +250 -0
- data/doc/Riaction/NoEventDefined.html +116 -0
- data/doc/Riaction/NoProfileDefined.html +116 -0
- data/doc/Riaction/ProfileCreationCallback.html +192 -0
- data/doc/Riaction/ProfileCreator.html +235 -0
- data/doc/Riaction/Railtie.html +116 -0
- data/doc/Riaction/Riaction/ClassMethods.html +837 -0
- data/doc/Riaction/Riaction/Event/InstanceMethods.html +301 -0
- data/doc/Riaction/Riaction/Event.html +108 -0
- data/doc/Riaction/Riaction/InstanceMethods.html +198 -0
- data/doc/Riaction/Riaction/Profile/InstanceMethods.html +746 -0
- data/doc/Riaction/Riaction/Profile.html +108 -0
- data/doc/Riaction/Riaction.html +125 -0
- data/doc/Riaction/RuntimeError.html +116 -0
- data/doc/Riaction.html +124 -0
- data/doc/RiactionGenerator.html +188 -0
- data/doc/_index.html +263 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +304 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +304 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +294 -0
- data/doc/top-level-namespace.html +107 -0
- data/lib/riaction/constants.rb +6 -2
- data/lib/riaction/crud_event_callback.rb +3 -0
- data/lib/riaction/event_performer.rb +10 -5
- data/lib/riaction/profile_creation_callback.rb +2 -0
- data/lib/riaction/riaction.rb +11 -7
- data/lib/riaction/version.rb +1 -1
- data/lib/tasks/riaction.rake +25 -22
- data/riaction.gemspec +4 -2
- data/spec/event_performer_spec.rb +23 -0
- data/spec/riaction_spec.rb +33 -4
- metadata +79 -19
@@ -0,0 +1,301 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: Riaction::Riaction::Event::InstanceMethods
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.5
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '../../..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../../../_index.html">Index (I)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../../../Riaction.html" title="Riaction (module)">Riaction</a></span></span> » <span class='title'><span class='object_link'><a href="../../Riaction.html" title="Riaction::Riaction (module)">Riaction</a></span></span> » <span class='title'><span class='object_link'><a href="../Event.html" title="Riaction::Riaction::Event (module)">Event</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">InstanceMethods</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Module: Riaction::Riaction::Event::InstanceMethods
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dt class="r1 last">Defined in:</dt>
|
75
|
+
<dd class="r1 last">lib/riaction/riaction.rb</dd>
|
76
|
+
|
77
|
+
</dl>
|
78
|
+
<div class="clear"></div>
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
<h2>
|
89
|
+
Instance Method Summary
|
90
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
91
|
+
</h2>
|
92
|
+
|
93
|
+
<ul class="summary">
|
94
|
+
|
95
|
+
<li class="public ">
|
96
|
+
<span class="summary_signature">
|
97
|
+
|
98
|
+
<a href="#riaction_event_params-instance_method" title="#riaction_event_params (instance method)">- (Object) <strong>riaction_event_params</strong> </a>
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
</span>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
112
|
+
|
113
|
+
</li>
|
114
|
+
|
115
|
+
|
116
|
+
<li class="public ">
|
117
|
+
<span class="summary_signature">
|
118
|
+
|
119
|
+
<a href="#riaction_log_event%3F-instance_method" title="#riaction_log_event? (instance method)">- (Boolean) <strong>riaction_log_event?</strong>(name) </a>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
</span>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
133
|
+
|
134
|
+
</li>
|
135
|
+
|
136
|
+
|
137
|
+
</ul>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<div id="instance_method_details" class="method_details_list">
|
143
|
+
<h2>Instance Method Details</h2>
|
144
|
+
|
145
|
+
|
146
|
+
<div class="method_details first">
|
147
|
+
<p class="signature first" id="riaction_event_params-instance_method">
|
148
|
+
|
149
|
+
- (<tt>Object</tt>) <strong>riaction_event_params</strong>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
</p><table class="source_code">
|
154
|
+
<tr>
|
155
|
+
<td>
|
156
|
+
<pre class="lines">
|
157
|
+
|
158
|
+
|
159
|
+
330
|
160
|
+
331
|
161
|
+
332
|
162
|
+
333
|
163
|
+
334
|
164
|
+
335
|
165
|
+
336
|
166
|
+
337
|
167
|
+
338
|
168
|
+
339
|
169
|
+
340
|
170
|
+
341
|
171
|
+
342
|
172
|
+
343
|
173
|
+
344
|
174
|
+
345
|
175
|
+
346
|
176
|
+
347
|
177
|
+
348
|
178
|
+
349
|
179
|
+
350
|
180
|
+
351
|
181
|
+
352
|
182
|
+
353
|
183
|
+
354
|
184
|
+
355
|
185
|
+
356
|
186
|
+
357
|
187
|
+
358
|
188
|
+
359
|
189
|
+
360
|
190
|
+
361
|
191
|
+
362
|
192
|
+
363</pre>
|
193
|
+
</td>
|
194
|
+
<td>
|
195
|
+
<pre class="code"><span class="info file"># File 'lib/riaction/riaction.rb', line 330</span>
|
196
|
+
|
197
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_riaction_event_params'>riaction_event_params</span>
|
198
|
+
<span class='id identifier rubyid_resolved_hash'>resolved_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
199
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_riaction_events'>riaction_events</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event_name'>event_name</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
200
|
+
<span class='id identifier rubyid_resolved_hash'>resolved_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
201
|
+
<span class='id identifier rubyid_resolved_profile'>resolved_profile</span> <span class='op'>=</span> <span class='id identifier rubyid_riaction_resolve_param'>riaction_resolve_param</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:profile</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
202
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>RuntimeError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>riaction profile missing for instance </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_resolved_profile'>resolved_profile</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
203
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_resolved_profile'>resolved_profile</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>ActiveRecord</span><span class='op'>::</span><span class='const'>Base</span><span class='rparen'>)</span> <span class='op'>&&</span>
|
204
|
+
<span class='id identifier rubyid_resolved_profile'>resolved_profile</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_riactionary?'>riactionary?</span> <span class='op'>&&</span>
|
205
|
+
<span class='id identifier rubyid_resolved_profile'>resolved_profile</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_riaction_profile?'>riaction_profile?</span> <span class='op'>&&</span>
|
206
|
+
<span class='id identifier rubyid_resolved_profile'>resolved_profile</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_riaction_profile_types_defined'>riaction_profile_types_defined</span> <span class='op'>></span> <span class='int'>0</span>
|
207
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ConfigurationError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rbrace'>}</span><span class='tstring_content'> must provide a riaction profile object for event </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_event_name'>event_name</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
208
|
+
<span class='kw'>end</span>
|
209
|
+
<span class='id identifier rubyid_profile_keys'>profile_keys</span> <span class='op'>=</span> <span class='id identifier rubyid_resolved_profile'>resolved_profile</span><span class='period'>.</span><span class='id identifier rubyid_riaction_profile_keys'>riaction_profile_keys</span>
|
210
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:profile_type</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
211
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_profile_keys'>profile_keys</span><span class='lbracket'>[</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:profile_type</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
212
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ConfigurationError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_resolved_profile'>resolved_profile</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rbrace'>}</span><span class='tstring_content'> does not define profile type </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:profile_type</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'> (see event </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_event_name'>event_name</span><span class='rbrace'>}</span><span class='tstring_content'> on </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rbrace'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
213
|
+
<span class='kw'>else</span>
|
214
|
+
<span class='id identifier rubyid_resolved_hash'>resolved_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:profile</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
215
|
+
<span class='symbol'>:type</span> <span class='op'>=></span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:profile_type</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
216
|
+
<span class='symbol'>:id_type</span> <span class='op'>=></span> <span class='id identifier rubyid_profile_keys'>profile_keys</span><span class='lbracket'>[</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:profile_type</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='comma'>,</span>
|
217
|
+
<span class='symbol'>:id</span> <span class='op'>=></span> <span class='id identifier rubyid_profile_keys'>profile_keys</span><span class='lbracket'>[</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:profile_type</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
|
218
|
+
<span class='rbrace'>}</span>
|
219
|
+
<span class='kw'>end</span>
|
220
|
+
<span class='kw'>else</span>
|
221
|
+
<span class='id identifier rubyid_resolved_hash'>resolved_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:profile</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
222
|
+
<span class='symbol'>:type</span> <span class='op'>=></span> <span class='id identifier rubyid_profile_keys'>profile_keys</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='comma'>,</span>
|
223
|
+
<span class='symbol'>:id_type</span> <span class='op'>=></span> <span class='id identifier rubyid_profile_keys'>profile_keys</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='comma'>,</span>
|
224
|
+
<span class='symbol'>:id</span> <span class='op'>=></span> <span class='id identifier rubyid_profile_keys'>profile_keys</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
|
225
|
+
<span class='rbrace'>}</span>
|
226
|
+
<span class='kw'>end</span>
|
227
|
+
<span class='id identifier rubyid_resolved_hash'>resolved_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:params</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_riaction_resolve_param'>riaction_resolve_param</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:params</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_riaction_resolve_param'>riaction_resolve_param</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_riaction_options'>riaction_options</span><span class='lbracket'>[</span><span class='symbol'>:default_event_params</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
228
|
+
<span class='kw'>end</span>
|
229
|
+
<span class='id identifier rubyid_resolved_hash'>resolved_hash</span>
|
230
|
+
<span class='kw'>end</span></pre>
|
231
|
+
</td>
|
232
|
+
</tr>
|
233
|
+
</table>
|
234
|
+
</div>
|
235
|
+
|
236
|
+
<div class="method_details ">
|
237
|
+
<p class="signature " id="riaction_log_event?-instance_method">
|
238
|
+
|
239
|
+
- (<tt>Boolean</tt>) <strong>riaction_log_event?</strong>(name)
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
</p><div class="docstring">
|
244
|
+
<div class="discussion">
|
245
|
+
|
246
|
+
|
247
|
+
</div>
|
248
|
+
</div>
|
249
|
+
<div class="tags">
|
250
|
+
|
251
|
+
<h3>Returns:</h3>
|
252
|
+
<ul class="return">
|
253
|
+
|
254
|
+
<li>
|
255
|
+
|
256
|
+
|
257
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</li>
|
262
|
+
|
263
|
+
</ul>
|
264
|
+
|
265
|
+
</div><table class="source_code">
|
266
|
+
<tr>
|
267
|
+
<td>
|
268
|
+
<pre class="lines">
|
269
|
+
|
270
|
+
|
271
|
+
365
|
272
|
+
366
|
273
|
+
367
|
274
|
+
368
|
275
|
+
369</pre>
|
276
|
+
</td>
|
277
|
+
<td>
|
278
|
+
<pre class="code"><span class="info file"># File 'lib/riaction/riaction.rb', line 365</span>
|
279
|
+
|
280
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_riaction_log_event?'>riaction_log_event?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
281
|
+
<span class='id identifier rubyid_riaction_resolve_param'>riaction_resolve_param</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_riaction_events'>riaction_events</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='symbol'>:guard</span><span class='rbracket'>]</span>
|
282
|
+
<span class='kw'>rescue</span> <span class='const'>KeyError</span>
|
283
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ConfigurationError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rbrace'>}</span><span class='tstring_content'> does not define an event named '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>'</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
284
|
+
<span class='kw'>end</span></pre>
|
285
|
+
</td>
|
286
|
+
</tr>
|
287
|
+
</table>
|
288
|
+
</div>
|
289
|
+
|
290
|
+
</div>
|
291
|
+
|
292
|
+
</div>
|
293
|
+
|
294
|
+
<div id="footer">
|
295
|
+
Generated on Tue Mar 6 22:00:20 2012 by
|
296
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
297
|
+
0.7.5 (ruby-1.9.3).
|
298
|
+
</div>
|
299
|
+
|
300
|
+
</body>
|
301
|
+
</html>
|
@@ -0,0 +1,108 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: Riaction::Riaction::Event
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.5
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '../..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../../_index.html">Index (E)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../../Riaction.html" title="Riaction (module)">Riaction</a></span></span> » <span class='title'><span class='object_link'><a href="../Riaction.html" title="Riaction::Riaction (module)">Riaction</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">Event</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Module: Riaction::Riaction::Event
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dt class="r1 last">Defined in:</dt>
|
75
|
+
<dd class="r1 last">lib/riaction/riaction.rb</dd>
|
76
|
+
|
77
|
+
</dl>
|
78
|
+
<div class="clear"></div>
|
79
|
+
|
80
|
+
<h2>Defined Under Namespace</h2>
|
81
|
+
<p class="children">
|
82
|
+
|
83
|
+
|
84
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Event/InstanceMethods.html" title="Riaction::Riaction::Event::InstanceMethods (module)">InstanceMethods</a></span>
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
</p>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<div id="footer">
|
102
|
+
Generated on Tue Mar 6 22:00:20 2012 by
|
103
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
104
|
+
0.7.5 (ruby-1.9.3).
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|
@@ -0,0 +1,198 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: Riaction::Riaction::InstanceMethods
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.5
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '../..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../../_index.html">Index (I)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../../Riaction.html" title="Riaction (module)">Riaction</a></span></span> » <span class='title'><span class='object_link'><a href="../Riaction.html" title="Riaction::Riaction (module)">Riaction</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">InstanceMethods</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Module: Riaction::Riaction::InstanceMethods
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dt class="r1 last">Defined in:</dt>
|
75
|
+
<dd class="r1 last">lib/riaction/riaction.rb</dd>
|
76
|
+
|
77
|
+
</dl>
|
78
|
+
<div class="clear"></div>
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
<h2>
|
89
|
+
Instance Method Summary
|
90
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
91
|
+
</h2>
|
92
|
+
|
93
|
+
<ul class="summary">
|
94
|
+
|
95
|
+
<li class="public ">
|
96
|
+
<span class="summary_signature">
|
97
|
+
|
98
|
+
<a href="#riaction_resolve_param-instance_method" title="#riaction_resolve_param (instance method)">- (Object) <strong>riaction_resolve_param</strong>(poly) </a>
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
</span>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
112
|
+
|
113
|
+
</li>
|
114
|
+
|
115
|
+
|
116
|
+
</ul>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<div id="instance_method_details" class="method_details_list">
|
122
|
+
<h2>Instance Method Details</h2>
|
123
|
+
|
124
|
+
|
125
|
+
<div class="method_details first">
|
126
|
+
<p class="signature first" id="riaction_resolve_param-instance_method">
|
127
|
+
|
128
|
+
- (<tt>Object</tt>) <strong>riaction_resolve_param</strong>(poly)
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
</p><table class="source_code">
|
133
|
+
<tr>
|
134
|
+
<td>
|
135
|
+
<pre class="lines">
|
136
|
+
|
137
|
+
|
138
|
+
199
|
139
|
+
200
|
140
|
+
201
|
141
|
+
202
|
142
|
+
203
|
143
|
+
204
|
144
|
+
205
|
145
|
+
206
|
146
|
+
207
|
147
|
+
208
|
148
|
+
209
|
149
|
+
210
|
150
|
+
211
|
151
|
+
212
|
152
|
+
213
|
153
|
+
214
|
154
|
+
215
|
155
|
+
216
|
156
|
+
217
|
157
|
+
218</pre>
|
158
|
+
</td>
|
159
|
+
<td>
|
160
|
+
<pre class="code"><span class="info file"># File 'lib/riaction/riaction.rb', line 199</span>
|
161
|
+
|
162
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_riaction_resolve_param'>riaction_resolve_param</span><span class='lparen'>(</span><span class='id identifier rubyid_poly'>poly</span><span class='rparen'>)</span>
|
163
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_poly'>poly</span>
|
164
|
+
<span class='kw'>when</span> <span class='const'>Symbol</span>
|
165
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_poly'>poly</span> <span class='op'>==</span> <span class='symbol'>:self</span>
|
166
|
+
<span class='kw'>self</span>
|
167
|
+
<span class='kw'>else</span>
|
168
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span> <span class='id identifier rubyid_poly'>poly</span>
|
169
|
+
<span class='kw'>end</span>
|
170
|
+
<span class='kw'>when</span> <span class='const'>Proc</span>
|
171
|
+
<span class='id identifier rubyid_poly'>poly</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span> <span class='kw'>self</span>
|
172
|
+
<span class='kw'>when</span> <span class='const'>Hash</span>
|
173
|
+
<span class='id identifier rubyid_resolved_hash'>resolved_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
174
|
+
<span class='id identifier rubyid_poly'>poly</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
|
175
|
+
<span class='id identifier rubyid_resolved_hash'>resolved_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_value'>value</span>
|
176
|
+
<span class='kw'>end</span>
|
177
|
+
<span class='id identifier rubyid_resolved_hash'>resolved_hash</span>
|
178
|
+
<span class='kw'>else</span>
|
179
|
+
<span class='id identifier rubyid_poly'>poly</span>
|
180
|
+
<span class='kw'>end</span>
|
181
|
+
<span class='kw'>end</span></pre>
|
182
|
+
</td>
|
183
|
+
</tr>
|
184
|
+
</table>
|
185
|
+
</div>
|
186
|
+
|
187
|
+
</div>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
|
191
|
+
<div id="footer">
|
192
|
+
Generated on Tue Mar 6 22:00:20 2012 by
|
193
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
194
|
+
0.7.5 (ruby-1.9.3).
|
195
|
+
</div>
|
196
|
+
|
197
|
+
</body>
|
198
|
+
</html>
|