ae_easy-core 0.1.9 → 0.2.0
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 +4 -4
- data/README.md +1 -1
- data/ae_easy-core.gemspec +1 -1
- data/doc/AeEasy.html +116 -116
- data/doc/AeEasy/Core.html +1217 -1217
- data/doc/AeEasy/Core/Config.html +284 -284
- data/doc/AeEasy/Core/Exception.html +116 -116
- data/doc/AeEasy/Core/Exception/OutdatedError.html +132 -132
- data/doc/AeEasy/Core/Helper.html +116 -116
- data/doc/AeEasy/Core/Helper/Cookie.html +797 -797
- data/doc/AeEasy/Core/Mock.html +231 -231
- data/doc/AeEasy/Core/Mock/FakeDb.html +3133 -2729
- data/doc/AeEasy/Core/Mock/FakeExecutor.html +2852 -2259
- data/doc/AeEasy/Core/Mock/FakeFinisher.html +160 -0
- data/doc/AeEasy/Core/Mock/FakeParser.html +157 -157
- data/doc/AeEasy/Core/Mock/FakeSeeder.html +157 -157
- data/doc/AeEasy/Core/Plugin.html +116 -116
- data/doc/AeEasy/Core/Plugin/CollectionVault.html +262 -262
- data/doc/AeEasy/Core/Plugin/ConfigBehavior.html +471 -471
- data/doc/AeEasy/Core/Plugin/ContextIntegrator.html +365 -365
- data/doc/AeEasy/Core/Plugin/Executor.html +243 -243
- data/doc/AeEasy/Core/Plugin/ExecutorBehavior.html +299 -299
- data/doc/AeEasy/Core/Plugin/Finisher.html +265 -0
- data/doc/AeEasy/Core/Plugin/FinisherBehavior.html +142 -0
- data/doc/AeEasy/Core/Plugin/InitializeHook.html +198 -198
- data/doc/AeEasy/Core/Plugin/Parser.html +254 -254
- data/doc/AeEasy/Core/Plugin/ParserBehavior.html +216 -216
- data/doc/AeEasy/Core/Plugin/Seeder.html +594 -594
- data/doc/AeEasy/Core/Plugin/SeederBehavior.html +141 -141
- data/doc/AeEasy/Core/SmartCollection.html +804 -804
- data/doc/_index.html +363 -342
- data/doc/class_list.html +51 -51
- data/doc/css/full_list.css +58 -58
- data/doc/css/style.css +496 -496
- data/doc/file.README.html +70 -70
- data/doc/file_list.html +56 -56
- data/doc/frames.html +17 -17
- data/doc/index.html +70 -70
- data/doc/js/app.js +303 -292
- data/doc/js/full_list.js +216 -216
- data/doc/js/jquery.js +3 -3
- data/doc/method_list.html +939 -851
- data/doc/top-level-namespace.html +109 -109
- data/lib/ae_easy/core/mock.rb +1 -0
- data/lib/ae_easy/core/mock/fake_db.rb +67 -1
- data/lib/ae_easy/core/mock/fake_executor.rb +61 -0
- data/lib/ae_easy/core/mock/fake_finisher.rb +28 -0
- data/lib/ae_easy/core/mock/fake_parser.rb +3 -1
- data/lib/ae_easy/core/plugin.rb +2 -0
- data/lib/ae_easy/core/plugin/finisher.rb +19 -0
- data/lib/ae_easy/core/plugin/finisher_behavior.rb +9 -0
- data/lib/ae_easy/core/version.rb +1 -1
- metadata +10 -4
@@ -1,357 +1,357 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Module: AeEasy::Core::Plugin::ContextIntegrator
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "AeEasy::Core::Plugin::ContextIntegrator";
|
19
|
-
relpath = '../../../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../../../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../../../_index.html">Index (C)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span> » <span class='title'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span> » <span class='title'><span class='object_link'><a href="../Plugin.html" title="AeEasy::Core::Plugin (module)">Plugin</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">ContextIntegrator</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../../../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Module: AeEasy::Core::Plugin::ContextIntegrator
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
<dl>
|
78
|
-
<dt>Included in:</dt>
|
79
|
-
<dd><span class='object_link'><a href="ConfigBehavior.html" title="AeEasy::Core::Plugin::ConfigBehavior (module)">ConfigBehavior</a></span>, <span class='object_link'><a href="ExecutorBehavior.html" title="AeEasy::Core::Plugin::ExecutorBehavior (module)">ExecutorBehavior</a></span></dd>
|
80
|
-
</dl>
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
<dl>
|
85
|
-
<dt>Defined in:</dt>
|
86
|
-
<dd>lib/ae_easy/core/plugin/context_integrator.rb</dd>
|
87
|
-
</dl>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
96
|
-
<ul class="summary">
|
97
|
-
|
98
|
-
<li class="public ">
|
99
|
-
<span class="summary_signature">
|
100
|
-
|
101
|
-
<a href="#context-instance_method" title="#context (instance method)">#<strong>context</strong> ⇒ Object </a>
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
</span>
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<span class="note title readonly">readonly</span>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: AeEasy::Core::Plugin::ContextIntegrator
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.20
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "AeEasy::Core::Plugin::ContextIntegrator";
|
19
|
+
relpath = '../../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../../_index.html">Index (C)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span> » <span class='title'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span> » <span class='title'><span class='object_link'><a href="../Plugin.html" title="AeEasy::Core::Plugin (module)">Plugin</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">ContextIntegrator</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: AeEasy::Core::Plugin::ContextIntegrator
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<dl>
|
78
|
+
<dt>Included in:</dt>
|
79
|
+
<dd><span class='object_link'><a href="ConfigBehavior.html" title="AeEasy::Core::Plugin::ConfigBehavior (module)">ConfigBehavior</a></span>, <span class='object_link'><a href="ExecutorBehavior.html" title="AeEasy::Core::Plugin::ExecutorBehavior (module)">ExecutorBehavior</a></span></dd>
|
80
|
+
</dl>
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
<dl>
|
85
|
+
<dt>Defined in:</dt>
|
86
|
+
<dd>lib/ae_easy/core/plugin/context_integrator.rb</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
96
|
+
<ul class="summary">
|
97
|
+
|
98
|
+
<li class="public ">
|
99
|
+
<span class="summary_signature">
|
100
|
+
|
101
|
+
<a href="#context-instance_method" title="#context (instance method)">#<strong>context</strong> ⇒ Object </a>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
</span>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<span class="note title readonly">readonly</span>
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
120
|
<span class="summary_desc"><div class='inline'>
|
121
121
|
<p>Last mocked ontext object.</p>
|
122
|
-
</div></span>
|
123
|
-
|
124
|
-
</li>
|
125
|
-
|
126
|
-
|
127
|
-
</ul>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<h2>
|
134
|
-
Instance Method Summary
|
135
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
136
|
-
</h2>
|
137
|
-
|
138
|
-
<ul class="summary">
|
139
|
-
|
140
|
-
<li class="public ">
|
141
|
-
<span class="summary_signature">
|
142
|
-
|
143
|
-
<a href="#initialize_hook_core_context_integrator-instance_method" title="#initialize_hook_core_context_integrator (instance method)">#<strong>initialize_hook_core_context_integrator</strong>(opts = [{}]) ⇒ Object </a>
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
</span>
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
122
|
+
</div></span>
|
123
|
+
|
124
|
+
</li>
|
125
|
+
|
126
|
+
|
127
|
+
</ul>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<h2>
|
134
|
+
Instance Method Summary
|
135
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
136
|
+
</h2>
|
137
|
+
|
138
|
+
<ul class="summary">
|
139
|
+
|
140
|
+
<li class="public ">
|
141
|
+
<span class="summary_signature">
|
142
|
+
|
143
|
+
<a href="#initialize_hook_core_context_integrator-instance_method" title="#initialize_hook_core_context_integrator (instance method)">#<strong>initialize_hook_core_context_integrator</strong>(opts = [{}]) ⇒ Object </a>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
</span>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
157
|
<span class="summary_desc"><div class='inline'>
|
158
158
|
<p>Hook to mock context on initialize.</p>
|
159
|
-
</div></span>
|
160
|
-
|
161
|
-
</li>
|
162
|
-
|
163
|
-
|
164
|
-
<li class="public ">
|
165
|
-
<span class="summary_signature">
|
166
|
-
|
167
|
-
<a href="#mock_context-instance_method" title="#mock_context (instance method)">#<strong>mock_context</strong>(origin) ⇒ Object </a>
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
</span>
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
159
|
+
</div></span>
|
160
|
+
|
161
|
+
</li>
|
162
|
+
|
163
|
+
|
164
|
+
<li class="public ">
|
165
|
+
<span class="summary_signature">
|
166
|
+
|
167
|
+
<a href="#mock_context-instance_method" title="#mock_context (instance method)">#<strong>mock_context</strong>(origin) ⇒ Object </a>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
</span>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
181
|
<span class="summary_desc"><div class='inline'>
|
182
182
|
<p>Mock a context methods into self.</p>
|
183
|
-
</div></span>
|
184
|
-
|
185
|
-
</li>
|
186
|
-
|
187
|
-
|
188
|
-
</ul>
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
<div id="instance_attr_details" class="attr_details">
|
193
|
-
<h2>Instance Attribute Details</h2>
|
194
|
-
|
195
|
-
|
196
|
-
<span id=""></span>
|
197
|
-
<div class="method_details first">
|
198
|
-
<h3 class="signature first" id="context-instance_method">
|
199
|
-
|
200
|
-
#<strong>context</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
</h3><div class="docstring">
|
207
|
-
<div class="discussion">
|
183
|
+
</div></span>
|
184
|
+
|
185
|
+
</li>
|
186
|
+
|
187
|
+
|
188
|
+
</ul>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<div id="instance_attr_details" class="attr_details">
|
193
|
+
<h2>Instance Attribute Details</h2>
|
194
|
+
|
195
|
+
|
196
|
+
<span id=""></span>
|
197
|
+
<div class="method_details first">
|
198
|
+
<h3 class="signature first" id="context-instance_method">
|
199
|
+
|
200
|
+
#<strong>context</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
</h3><div class="docstring">
|
207
|
+
<div class="discussion">
|
208
208
|
|
209
209
|
<p>Last mocked ontext object.</p>
|
210
|
-
|
211
|
-
|
212
|
-
</div>
|
213
|
-
</div>
|
214
|
-
<div class="tags">
|
215
|
-
|
216
|
-
|
217
|
-
</div><table class="source_code">
|
218
|
-
<tr>
|
219
|
-
<td>
|
210
|
+
|
211
|
+
|
212
|
+
</div>
|
213
|
+
</div>
|
214
|
+
<div class="tags">
|
215
|
+
|
216
|
+
|
217
|
+
</div><table class="source_code">
|
218
|
+
<tr>
|
219
|
+
<td>
|
220
220
|
<pre class="lines">
|
221
221
|
|
222
222
|
|
223
223
|
6
|
224
224
|
7
|
225
|
-
8</pre>
|
226
|
-
</td>
|
227
|
-
<td>
|
225
|
+
8</pre>
|
226
|
+
</td>
|
227
|
+
<td>
|
228
228
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/context_integrator.rb', line 6</span>
|
229
229
|
|
230
230
|
<span class='kw'>def</span> <span class='id identifier rubyid_context'>context</span>
|
231
231
|
<span class='ivar'>@context</span>
|
232
|
-
<span class='kw'>end</span></pre>
|
233
|
-
</td>
|
234
|
-
</tr>
|
235
|
-
</table>
|
236
|
-
</div>
|
237
|
-
|
238
|
-
</div>
|
239
|
-
|
240
|
-
|
241
|
-
<div id="instance_method_details" class="method_details_list">
|
242
|
-
<h2>Instance Method Details</h2>
|
243
|
-
|
244
|
-
|
245
|
-
<div class="method_details first">
|
246
|
-
<h3 class="signature first" id="initialize_hook_core_context_integrator-instance_method">
|
247
|
-
|
248
|
-
#<strong>initialize_hook_core_context_integrator</strong>(opts = [{}]) ⇒ <tt>Object</tt>
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
</h3><div class="docstring">
|
255
|
-
<div class="discussion">
|
232
|
+
<span class='kw'>end</span></pre>
|
233
|
+
</td>
|
234
|
+
</tr>
|
235
|
+
</table>
|
236
|
+
</div>
|
237
|
+
|
238
|
+
</div>
|
239
|
+
|
240
|
+
|
241
|
+
<div id="instance_method_details" class="method_details_list">
|
242
|
+
<h2>Instance Method Details</h2>
|
243
|
+
|
244
|
+
|
245
|
+
<div class="method_details first">
|
246
|
+
<h3 class="signature first" id="initialize_hook_core_context_integrator-instance_method">
|
247
|
+
|
248
|
+
#<strong>initialize_hook_core_context_integrator</strong>(opts = [{}]) ⇒ <tt>Object</tt>
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
</h3><div class="docstring">
|
255
|
+
<div class="discussion">
|
256
256
|
|
257
257
|
<p>Hook to mock context on initialize.</p>
|
258
|
-
|
259
|
-
|
260
|
-
</div>
|
261
|
-
</div>
|
262
|
-
<div class="tags">
|
263
|
-
<p class="tag_title">Parameters:</p>
|
264
|
-
<ul class="param">
|
265
|
-
|
266
|
-
<li>
|
267
|
-
|
268
|
-
<span class='name'>opts</span>
|
269
|
-
|
270
|
-
|
271
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
272
|
-
|
273
|
-
|
274
|
-
<em class="default">(defaults to: <tt>[{}]</tt>)</em>
|
275
|
-
|
276
|
-
|
277
|
-
—
|
258
|
+
|
259
|
+
|
260
|
+
</div>
|
261
|
+
</div>
|
262
|
+
<div class="tags">
|
263
|
+
<p class="tag_title">Parameters:</p>
|
264
|
+
<ul class="param">
|
265
|
+
|
266
|
+
<li>
|
267
|
+
|
268
|
+
<span class='name'>opts</span>
|
269
|
+
|
270
|
+
|
271
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
272
|
+
|
273
|
+
|
274
|
+
<em class="default">(defaults to: <tt>[{}]</tt>)</em>
|
275
|
+
|
276
|
+
|
277
|
+
—
|
278
278
|
<div class='inline'>
|
279
279
|
<p>({}) Configuration options.</p>
|
280
|
-
</div>
|
281
|
-
|
282
|
-
</li>
|
283
|
-
|
284
|
-
</ul>
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
290
|
-
<ul class="option">
|
291
|
-
|
292
|
-
<li>
|
293
|
-
<span class="name">:context</span>
|
294
|
-
<span class="type">(<tt>Object</tt>)</span>
|
295
|
-
<span class="default">
|
296
|
-
|
297
|
-
</span>
|
298
|
-
|
280
|
+
</div>
|
281
|
+
|
282
|
+
</li>
|
283
|
+
|
284
|
+
</ul>
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
290
|
+
<ul class="option">
|
291
|
+
|
292
|
+
<li>
|
293
|
+
<span class="name">:context</span>
|
294
|
+
<span class="type">(<tt>Object</tt>)</span>
|
295
|
+
<span class="default">
|
296
|
+
|
297
|
+
</span>
|
298
|
+
|
299
299
|
— <div class='inline'>
|
300
300
|
<p>Object that represents the context to mock.</p>
|
301
|
-
</div>
|
302
|
-
|
303
|
-
</li>
|
304
|
-
|
305
|
-
</ul>
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
</div><table class="source_code">
|
310
|
-
<tr>
|
311
|
-
<td>
|
301
|
+
</div>
|
302
|
+
|
303
|
+
</li>
|
304
|
+
|
305
|
+
</ul>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
</div><table class="source_code">
|
310
|
+
<tr>
|
311
|
+
<td>
|
312
312
|
<pre class="lines">
|
313
313
|
|
314
314
|
|
315
315
|
53
|
316
316
|
54
|
317
317
|
55
|
318
|
-
56</pre>
|
319
|
-
</td>
|
320
|
-
<td>
|
318
|
+
56</pre>
|
319
|
+
</td>
|
320
|
+
<td>
|
321
321
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/context_integrator.rb', line 53</span>
|
322
322
|
|
323
323
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize_hook_core_context_integrator'>initialize_hook_core_context_integrator</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rbracket'>]</span>
|
324
324
|
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>:context object is required.</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:context</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
325
325
|
<span class='id identifier rubyid_mock_context'>mock_context</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:context</span><span class='rbracket'>]</span>
|
326
|
-
<span class='kw'>end</span></pre>
|
327
|
-
</td>
|
328
|
-
</tr>
|
329
|
-
</table>
|
330
|
-
</div>
|
331
|
-
|
332
|
-
<div class="method_details ">
|
333
|
-
<h3 class="signature " id="mock_context-instance_method">
|
334
|
-
|
335
|
-
#<strong>mock_context</strong>(origin) ⇒ <tt>Object</tt>
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
</h3><div class="docstring">
|
342
|
-
<div class="discussion">
|
326
|
+
<span class='kw'>end</span></pre>
|
327
|
+
</td>
|
328
|
+
</tr>
|
329
|
+
</table>
|
330
|
+
</div>
|
331
|
+
|
332
|
+
<div class="method_details ">
|
333
|
+
<h3 class="signature " id="mock_context-instance_method">
|
334
|
+
|
335
|
+
#<strong>mock_context</strong>(origin) ⇒ <tt>Object</tt>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
</h3><div class="docstring">
|
342
|
+
<div class="discussion">
|
343
343
|
|
344
344
|
<p>Mock a context methods into self.</p>
|
345
|
-
|
346
|
-
|
347
|
-
</div>
|
348
|
-
</div>
|
349
|
-
<div class="tags">
|
350
|
-
|
351
|
-
<div class="examples">
|
352
|
-
<p class="tag_title">Examples:</p>
|
353
|
-
|
354
|
-
|
345
|
+
|
346
|
+
|
347
|
+
</div>
|
348
|
+
</div>
|
349
|
+
<div class="tags">
|
350
|
+
|
351
|
+
<div class="examples">
|
352
|
+
<p class="tag_title">Examples:</p>
|
353
|
+
|
354
|
+
|
355
355
|
<pre class="example code"><code><span class='kw'>class</span> <span class='const'>MyContext</span>
|
356
356
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:message</span>
|
357
357
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
@@ -382,64 +382,64 @@
|
|
382
382
|
</span>
|
383
383
|
<span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Hello world again!</span><span class='tstring_end'>'</span></span>
|
384
384
|
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_my_object'>my_object</span><span class='period'>.</span><span class='id identifier rubyid_hello_world'>hello_world</span>
|
385
|
-
<span class='comment'># => 'Hello world again!</span></code></pre>
|
386
|
-
|
387
|
-
</div>
|
388
|
-
<p class="tag_title">Parameters:</p>
|
389
|
-
<ul class="param">
|
390
|
-
|
391
|
-
<li>
|
392
|
-
|
393
|
-
<span class='name'>origin</span>
|
394
|
-
|
395
|
-
|
396
|
-
<span class='type'></span>
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
—
|
385
|
+
<span class='comment'># => 'Hello world again!</span></code></pre>
|
386
|
+
|
387
|
+
</div>
|
388
|
+
<p class="tag_title">Parameters:</p>
|
389
|
+
<ul class="param">
|
390
|
+
|
391
|
+
<li>
|
392
|
+
|
393
|
+
<span class='name'>origin</span>
|
394
|
+
|
395
|
+
|
396
|
+
<span class='type'></span>
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
—
|
401
401
|
<div class='inline'>
|
402
402
|
<p>Object that represents the context to mock.</p>
|
403
|
-
</div>
|
404
|
-
|
405
|
-
</li>
|
406
|
-
|
407
|
-
</ul>
|
408
|
-
|
409
|
-
|
410
|
-
</div><table class="source_code">
|
411
|
-
<tr>
|
412
|
-
<td>
|
403
|
+
</div>
|
404
|
+
|
405
|
+
</li>
|
406
|
+
|
407
|
+
</ul>
|
408
|
+
|
409
|
+
|
410
|
+
</div><table class="source_code">
|
411
|
+
<tr>
|
412
|
+
<td>
|
413
413
|
<pre class="lines">
|
414
414
|
|
415
415
|
|
416
416
|
44
|
417
417
|
45
|
418
418
|
46
|
419
|
-
47</pre>
|
420
|
-
</td>
|
421
|
-
<td>
|
419
|
+
47</pre>
|
420
|
+
</td>
|
421
|
+
<td>
|
422
422
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/context_integrator.rb', line 44</span>
|
423
423
|
|
424
424
|
<span class='kw'>def</span> <span class='id identifier rubyid_mock_context'>mock_context</span> <span class='id identifier rubyid_origin'>origin</span>
|
425
425
|
<span class='ivar'>@context</span> <span class='op'>=</span> <span class='id identifier rubyid_origin'>origin</span>
|
426
426
|
<span class='const'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span><span class='period'>.</span><span class='id identifier rubyid_mock_instance_methods'><span class='object_link'><a href="../../Core.html#mock_instance_methods-class_method" title="AeEasy::Core.mock_instance_methods (method)">mock_instance_methods</a></span></span> <span class='id identifier rubyid_context'>context</span><span class='comma'>,</span> <span class='kw'>self</span>
|
427
|
-
<span class='kw'>end</span></pre>
|
428
|
-
</td>
|
429
|
-
</tr>
|
430
|
-
</table>
|
431
|
-
</div>
|
432
|
-
|
433
|
-
</div>
|
434
|
-
|
435
|
-
</div>
|
436
|
-
|
437
|
-
<div id="footer">
|
438
|
-
Generated on
|
439
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
440
|
-
0.9.
|
441
|
-
</div>
|
442
|
-
|
443
|
-
</div>
|
444
|
-
</body>
|
427
|
+
<span class='kw'>end</span></pre>
|
428
|
+
</td>
|
429
|
+
</tr>
|
430
|
+
</table>
|
431
|
+
</div>
|
432
|
+
|
433
|
+
</div>
|
434
|
+
|
435
|
+
</div>
|
436
|
+
|
437
|
+
<div id="footer">
|
438
|
+
Generated on Fri Sep 27 02:01:31 2019 by
|
439
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
440
|
+
0.9.20 (ruby-2.5.3).
|
441
|
+
</div>
|
442
|
+
|
443
|
+
</div>
|
444
|
+
</body>
|
445
445
|
</html>
|