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,541 +1,541 @@
|
|
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::ConfigBehavior
|
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::ConfigBehavior";
|
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">ConfigBehavior</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::ConfigBehavior
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
<dl>
|
75
|
-
<dt>Includes:</dt>
|
76
|
-
<dd><span class='object_link'><a href="CollectionVault.html" title="AeEasy::Core::Plugin::CollectionVault (module)">CollectionVault</a></span>, <span class='object_link'><a href="ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span></dd>
|
77
|
-
</dl>
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
<dl>
|
83
|
-
<dt>Included in:</dt>
|
84
|
-
<dd><span class='object_link'><a href="../Config.html" title="AeEasy::Core::Config (class)">Config</a></span></dd>
|
85
|
-
</dl>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<dl>
|
90
|
-
<dt>Defined in:</dt>
|
91
|
-
<dd>lib/ae_easy/core/plugin/config_behavior.rb</dd>
|
92
|
-
</dl>
|
93
|
-
|
94
|
-
</div>
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
101
|
-
<ul class="summary">
|
102
|
-
|
103
|
-
<li class="public ">
|
104
|
-
<span class="summary_signature">
|
105
|
-
|
106
|
-
<a href="#config_collection_key-instance_method" title="#config_collection_key (instance method)">#<strong>config_collection_key</strong> ⇒ Object </a>
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
</span>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<span class="note title readonly">readonly</span>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
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::ConfigBehavior
|
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::ConfigBehavior";
|
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">ConfigBehavior</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::ConfigBehavior
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dl>
|
75
|
+
<dt>Includes:</dt>
|
76
|
+
<dd><span class='object_link'><a href="CollectionVault.html" title="AeEasy::Core::Plugin::CollectionVault (module)">CollectionVault</a></span>, <span class='object_link'><a href="ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span></dd>
|
77
|
+
</dl>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
<dl>
|
83
|
+
<dt>Included in:</dt>
|
84
|
+
<dd><span class='object_link'><a href="../Config.html" title="AeEasy::Core::Config (class)">Config</a></span></dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<dl>
|
90
|
+
<dt>Defined in:</dt>
|
91
|
+
<dd>lib/ae_easy/core/plugin/config_behavior.rb</dd>
|
92
|
+
</dl>
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
101
|
+
<ul class="summary">
|
102
|
+
|
103
|
+
<li class="public ">
|
104
|
+
<span class="summary_signature">
|
105
|
+
|
106
|
+
<a href="#config_collection_key-instance_method" title="#config_collection_key (instance method)">#<strong>config_collection_key</strong> ⇒ Object </a>
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
</span>
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
<span class="note title readonly">readonly</span>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
125
|
<span class="summary_desc"><div class='inline'>
|
126
126
|
<p>Returns the value of attribute config_collection_key.</p>
|
127
|
-
</div></span>
|
128
|
-
|
129
|
-
</li>
|
130
|
-
|
131
|
-
|
132
|
-
</ul>
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
<h3 class="inherited">Attributes included from <span class='object_link'><a href="ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span></h3>
|
139
|
-
<p class="inherited"><span class='object_link'><a href="ContextIntegrator.html#context-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#context (method)">#context</a></span></p>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
<h2>
|
144
|
-
Instance Method Summary
|
145
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
146
|
-
</h2>
|
147
|
-
|
148
|
-
<ul class="summary">
|
149
|
-
|
150
|
-
<li class="public ">
|
151
|
-
<span class="summary_signature">
|
152
|
-
|
153
|
-
<a href="#config_collection-instance_method" title="#config_collection (instance method)">#<strong>config_collection</strong> ⇒ String </a>
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
</span>
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
127
|
+
</div></span>
|
128
|
+
|
129
|
+
</li>
|
130
|
+
|
131
|
+
|
132
|
+
</ul>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
<h3 class="inherited">Attributes included from <span class='object_link'><a href="ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span></h3>
|
139
|
+
<p class="inherited"><span class='object_link'><a href="ContextIntegrator.html#context-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#context (method)">#context</a></span></p>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<h2>
|
144
|
+
Instance Method Summary
|
145
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
146
|
+
</h2>
|
147
|
+
|
148
|
+
<ul class="summary">
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#config_collection-instance_method" title="#config_collection (instance method)">#<strong>config_collection</strong> ⇒ String </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
167
|
<span class="summary_desc"><div class='inline'>
|
168
168
|
<p>Get config collection name.</p>
|
169
|
-
</div></span>
|
170
|
-
|
171
|
-
</li>
|
172
|
-
|
173
|
-
|
174
|
-
<li class="public ">
|
175
|
-
<span class="summary_signature">
|
176
|
-
|
177
|
-
<a href="#find_config-instance_method" title="#find_config (instance method)">#<strong>find_config</strong>(key) ⇒ Object </a>
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
</span>
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
169
|
+
</div></span>
|
170
|
+
|
171
|
+
</li>
|
172
|
+
|
173
|
+
|
174
|
+
<li class="public ">
|
175
|
+
<span class="summary_signature">
|
176
|
+
|
177
|
+
<a href="#find_config-instance_method" title="#find_config (instance method)">#<strong>find_config</strong>(key) ⇒ Object </a>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
</span>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
191
|
<span class="summary_desc"><div class='inline'>
|
192
192
|
<p>Find a configuration value by item key.</p>
|
193
|
-
</div></span>
|
194
|
-
|
195
|
-
</li>
|
196
|
-
|
197
|
-
|
198
|
-
<li class="public ">
|
199
|
-
<span class="summary_signature">
|
200
|
-
|
201
|
-
<a href="#initialize_hook_core_config_behavior-instance_method" title="#initialize_hook_core_config_behavior (instance method)">#<strong>initialize_hook_core_config_behavior</strong>(opts = {}) ⇒ Object </a>
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
</span>
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
193
|
+
</div></span>
|
194
|
+
|
195
|
+
</li>
|
196
|
+
|
197
|
+
|
198
|
+
<li class="public ">
|
199
|
+
<span class="summary_signature">
|
200
|
+
|
201
|
+
<a href="#initialize_hook_core_config_behavior-instance_method" title="#initialize_hook_core_config_behavior (instance method)">#<strong>initialize_hook_core_config_behavior</strong>(opts = {}) ⇒ Object </a>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
</span>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
215
|
<span class="summary_desc"><div class='inline'>
|
216
216
|
<p>Hook to map config behavior on self.</p>
|
217
|
-
</div></span>
|
218
|
-
|
219
|
-
</li>
|
220
|
-
|
221
|
-
|
222
|
-
</ul>
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="CollectionVault.html" title="AeEasy::Core::Plugin::CollectionVault (module)">CollectionVault</a></span></h3>
|
235
|
-
<p class="inherited"><span class='object_link'><a href="CollectionVault.html#add_collection-instance_method" title="AeEasy::Core::Plugin::CollectionVault#add_collection (method)">#add_collection</a></span>, <span class='object_link'><a href="CollectionVault.html#collections-instance_method" title="AeEasy::Core::Plugin::CollectionVault#collections (method)">#collections</a></span></p>
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span></h3>
|
246
|
-
<p class="inherited"><span class='object_link'><a href="ContextIntegrator.html#initialize_hook_core_context_integrator-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#initialize_hook_core_context_integrator (method)">#initialize_hook_core_context_integrator</a></span>, <span class='object_link'><a href="ContextIntegrator.html#mock_context-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#mock_context (method)">#mock_context</a></span></p>
|
247
|
-
|
248
|
-
<div id="instance_attr_details" class="attr_details">
|
249
|
-
<h2>Instance Attribute Details</h2>
|
250
|
-
|
251
|
-
|
252
|
-
<span id=""></span>
|
253
|
-
<div class="method_details first">
|
254
|
-
<h3 class="signature first" id="config_collection_key-instance_method">
|
255
|
-
|
256
|
-
#<strong>config_collection_key</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
</h3><div class="docstring">
|
263
|
-
<div class="discussion">
|
217
|
+
</div></span>
|
218
|
+
|
219
|
+
</li>
|
220
|
+
|
221
|
+
|
222
|
+
</ul>
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="CollectionVault.html" title="AeEasy::Core::Plugin::CollectionVault (module)">CollectionVault</a></span></h3>
|
235
|
+
<p class="inherited"><span class='object_link'><a href="CollectionVault.html#add_collection-instance_method" title="AeEasy::Core::Plugin::CollectionVault#add_collection (method)">#add_collection</a></span>, <span class='object_link'><a href="CollectionVault.html#collections-instance_method" title="AeEasy::Core::Plugin::CollectionVault#collections (method)">#collections</a></span></p>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span></h3>
|
246
|
+
<p class="inherited"><span class='object_link'><a href="ContextIntegrator.html#initialize_hook_core_context_integrator-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#initialize_hook_core_context_integrator (method)">#initialize_hook_core_context_integrator</a></span>, <span class='object_link'><a href="ContextIntegrator.html#mock_context-instance_method" title="AeEasy::Core::Plugin::ContextIntegrator#mock_context (method)">#mock_context</a></span></p>
|
247
|
+
|
248
|
+
<div id="instance_attr_details" class="attr_details">
|
249
|
+
<h2>Instance Attribute Details</h2>
|
250
|
+
|
251
|
+
|
252
|
+
<span id=""></span>
|
253
|
+
<div class="method_details first">
|
254
|
+
<h3 class="signature first" id="config_collection_key-instance_method">
|
255
|
+
|
256
|
+
#<strong>config_collection_key</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
</h3><div class="docstring">
|
263
|
+
<div class="discussion">
|
264
264
|
|
265
265
|
<p>Returns the value of attribute config_collection_key</p>
|
266
|
-
|
267
|
-
|
268
|
-
</div>
|
269
|
-
</div>
|
270
|
-
<div class="tags">
|
271
|
-
|
272
|
-
|
273
|
-
</div><table class="source_code">
|
274
|
-
<tr>
|
275
|
-
<td>
|
266
|
+
|
267
|
+
|
268
|
+
</div>
|
269
|
+
</div>
|
270
|
+
<div class="tags">
|
271
|
+
|
272
|
+
|
273
|
+
</div><table class="source_code">
|
274
|
+
<tr>
|
275
|
+
<td>
|
276
276
|
<pre class="lines">
|
277
277
|
|
278
278
|
|
279
279
|
8
|
280
280
|
9
|
281
|
-
10</pre>
|
282
|
-
</td>
|
283
|
-
<td>
|
281
|
+
10</pre>
|
282
|
+
</td>
|
283
|
+
<td>
|
284
284
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/config_behavior.rb', line 8</span>
|
285
285
|
|
286
286
|
<span class='kw'>def</span> <span class='id identifier rubyid_config_collection_key'>config_collection_key</span>
|
287
287
|
<span class='ivar'>@config_collection_key</span>
|
288
|
-
<span class='kw'>end</span></pre>
|
289
|
-
</td>
|
290
|
-
</tr>
|
291
|
-
</table>
|
292
|
-
</div>
|
293
|
-
|
294
|
-
</div>
|
295
|
-
|
296
|
-
|
297
|
-
<div id="instance_method_details" class="method_details_list">
|
298
|
-
<h2>Instance Method Details</h2>
|
299
|
-
|
300
|
-
|
301
|
-
<div class="method_details first">
|
302
|
-
<h3 class="signature first" id="config_collection-instance_method">
|
303
|
-
|
304
|
-
#<strong>config_collection</strong> ⇒ <tt>String</tt>
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
</h3><div class="docstring">
|
311
|
-
<div class="discussion">
|
288
|
+
<span class='kw'>end</span></pre>
|
289
|
+
</td>
|
290
|
+
</tr>
|
291
|
+
</table>
|
292
|
+
</div>
|
293
|
+
|
294
|
+
</div>
|
295
|
+
|
296
|
+
|
297
|
+
<div id="instance_method_details" class="method_details_list">
|
298
|
+
<h2>Instance Method Details</h2>
|
299
|
+
|
300
|
+
|
301
|
+
<div class="method_details first">
|
302
|
+
<h3 class="signature first" id="config_collection-instance_method">
|
303
|
+
|
304
|
+
#<strong>config_collection</strong> ⇒ <tt>String</tt>
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
</h3><div class="docstring">
|
311
|
+
<div class="discussion">
|
312
312
|
|
313
313
|
<p>Get config collection name.</p>
|
314
|
-
|
315
|
-
|
316
|
-
</div>
|
317
|
-
</div>
|
318
|
-
<div class="tags">
|
319
|
-
|
320
|
-
<p class="tag_title">Returns:</p>
|
321
|
-
<ul class="return">
|
322
|
-
|
323
|
-
<li>
|
324
|
-
|
325
|
-
|
326
|
-
<span class='type'>(<tt>String</tt>)</span>
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
</li>
|
331
|
-
|
332
|
-
</ul>
|
333
|
-
|
334
|
-
</div><table class="source_code">
|
335
|
-
<tr>
|
336
|
-
<td>
|
314
|
+
|
315
|
+
|
316
|
+
</div>
|
317
|
+
</div>
|
318
|
+
<div class="tags">
|
319
|
+
|
320
|
+
<p class="tag_title">Returns:</p>
|
321
|
+
<ul class="return">
|
322
|
+
|
323
|
+
<li>
|
324
|
+
|
325
|
+
|
326
|
+
<span class='type'>(<tt>String</tt>)</span>
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
</li>
|
331
|
+
|
332
|
+
</ul>
|
333
|
+
|
334
|
+
</div><table class="source_code">
|
335
|
+
<tr>
|
336
|
+
<td>
|
337
337
|
<pre class="lines">
|
338
338
|
|
339
339
|
|
340
340
|
26
|
341
341
|
27
|
342
|
-
28</pre>
|
343
|
-
</td>
|
344
|
-
<td>
|
342
|
+
28</pre>
|
343
|
+
</td>
|
344
|
+
<td>
|
345
345
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/config_behavior.rb', line 26</span>
|
346
346
|
|
347
347
|
<span class='kw'>def</span> <span class='id identifier rubyid_config_collection'>config_collection</span>
|
348
348
|
<span class='id identifier rubyid_collections'>collections</span><span class='lbracket'>[</span><span class='id identifier rubyid_config_collection_key'>config_collection_key</span><span class='rbracket'>]</span>
|
349
|
-
<span class='kw'>end</span></pre>
|
350
|
-
</td>
|
351
|
-
</tr>
|
352
|
-
</table>
|
353
|
-
</div>
|
354
|
-
|
355
|
-
<div class="method_details ">
|
356
|
-
<h3 class="signature " id="find_config-instance_method">
|
357
|
-
|
358
|
-
#<strong>find_config</strong>(key) ⇒ <tt>Object</tt>
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
</h3><div class="docstring">
|
365
|
-
<div class="discussion">
|
366
|
-
|
367
|
-
<div class="note notetag">
|
368
|
-
<strong>Note:</strong>
|
349
|
+
<span class='kw'>end</span></pre>
|
350
|
+
</td>
|
351
|
+
</tr>
|
352
|
+
</table>
|
353
|
+
</div>
|
354
|
+
|
355
|
+
<div class="method_details ">
|
356
|
+
<h3 class="signature " id="find_config-instance_method">
|
357
|
+
|
358
|
+
#<strong>find_config</strong>(key) ⇒ <tt>Object</tt>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
</h3><div class="docstring">
|
365
|
+
<div class="discussion">
|
366
|
+
|
367
|
+
<div class="note notetag">
|
368
|
+
<strong>Note:</strong>
|
369
369
|
<div class='inline'>
|
370
370
|
<p>Instance must implement:</p>
|
371
371
|
<ul><li>
|
372
372
|
<p>`find_output(collection, query)`</p>
|
373
373
|
</li></ul>
|
374
|
-
</div>
|
375
|
-
</div>
|
376
|
-
|
374
|
+
</div>
|
375
|
+
</div>
|
376
|
+
|
377
377
|
|
378
378
|
<p>Find a configuration value by item key.</p>
|
379
|
-
|
380
|
-
|
381
|
-
</div>
|
382
|
-
</div>
|
383
|
-
<div class="tags">
|
384
|
-
<p class="tag_title">Parameters:</p>
|
385
|
-
<ul class="param">
|
386
|
-
|
387
|
-
<li>
|
388
|
-
|
389
|
-
<span class='name'>key</span>
|
390
|
-
|
391
|
-
|
392
|
-
<span class='type'>(<tt>Symbol</tt>)</span>
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
—
|
379
|
+
|
380
|
+
|
381
|
+
</div>
|
382
|
+
</div>
|
383
|
+
<div class="tags">
|
384
|
+
<p class="tag_title">Parameters:</p>
|
385
|
+
<ul class="param">
|
386
|
+
|
387
|
+
<li>
|
388
|
+
|
389
|
+
<span class='name'>key</span>
|
390
|
+
|
391
|
+
|
392
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
—
|
397
397
|
<div class='inline'>
|
398
398
|
<p>Item key to find.</p>
|
399
|
-
</div>
|
400
|
-
|
401
|
-
</li>
|
402
|
-
|
403
|
-
</ul>
|
404
|
-
|
405
|
-
|
406
|
-
</div><table class="source_code">
|
407
|
-
<tr>
|
408
|
-
<td>
|
399
|
+
</div>
|
400
|
+
|
401
|
+
</li>
|
402
|
+
|
403
|
+
</ul>
|
404
|
+
|
405
|
+
|
406
|
+
</div><table class="source_code">
|
407
|
+
<tr>
|
408
|
+
<td>
|
409
409
|
<pre class="lines">
|
410
410
|
|
411
411
|
|
412
412
|
36
|
413
413
|
37
|
414
414
|
38
|
415
|
-
39</pre>
|
416
|
-
</td>
|
417
|
-
<td>
|
415
|
+
39</pre>
|
416
|
+
</td>
|
417
|
+
<td>
|
418
418
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/config_behavior.rb', line 36</span>
|
419
419
|
|
420
420
|
<span class='kw'>def</span> <span class='id identifier rubyid_find_config'>find_config</span> <span class='id identifier rubyid_key'>key</span>
|
421
421
|
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_find_output'>find_output</span> <span class='id identifier rubyid_config_collection'>config_collection</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>_id</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='id identifier rubyid_key'>key</span>
|
422
422
|
<span class='id identifier rubyid_value'>value</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>_collection</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='id identifier rubyid_config_collection'>config_collection</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>_id</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='id identifier rubyid_key'>key</span><span class='rbrace'>}</span>
|
423
|
-
<span class='kw'>end</span></pre>
|
424
|
-
</td>
|
425
|
-
</tr>
|
426
|
-
</table>
|
427
|
-
</div>
|
428
|
-
|
429
|
-
<div class="method_details ">
|
430
|
-
<h3 class="signature " id="initialize_hook_core_config_behavior-instance_method">
|
431
|
-
|
432
|
-
#<strong>initialize_hook_core_config_behavior</strong>(opts = {}) ⇒ <tt>Object</tt>
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
</h3><div class="docstring">
|
439
|
-
<div class="discussion">
|
423
|
+
<span class='kw'>end</span></pre>
|
424
|
+
</td>
|
425
|
+
</tr>
|
426
|
+
</table>
|
427
|
+
</div>
|
428
|
+
|
429
|
+
<div class="method_details ">
|
430
|
+
<h3 class="signature " id="initialize_hook_core_config_behavior-instance_method">
|
431
|
+
|
432
|
+
#<strong>initialize_hook_core_config_behavior</strong>(opts = {}) ⇒ <tt>Object</tt>
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
</h3><div class="docstring">
|
439
|
+
<div class="discussion">
|
440
440
|
|
441
441
|
<p>Hook to map config behavior on self</p>
|
442
|
-
|
443
|
-
|
444
|
-
</div>
|
445
|
-
</div>
|
446
|
-
<div class="tags">
|
447
|
-
|
448
|
-
<div class="examples">
|
449
|
-
<p class="tag_title">Examples:</p>
|
450
|
-
|
451
|
-
|
442
|
+
|
443
|
+
|
444
|
+
</div>
|
445
|
+
</div>
|
446
|
+
<div class="tags">
|
447
|
+
|
448
|
+
<div class="examples">
|
449
|
+
<p class="tag_title">Examples:</p>
|
450
|
+
|
451
|
+
|
452
452
|
<pre class="example code"><code><span class='id identifier rubyid_initialize_hook_core_config_behavior'>initialize_hook_core_config_behavior</span> <span class='label'>config_collection:</span> <span class='lbracket'>[</span><span class='symbol'>:my_config</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>abc</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
453
453
|
<span class='id identifier rubyid_config_collection'>config_collection</span>
|
454
|
-
<span class='comment'># => 'abc'</span></code></pre>
|
455
|
-
|
456
|
-
</div>
|
457
|
-
<p class="tag_title">Parameters:</p>
|
458
|
-
<ul class="param">
|
459
|
-
|
460
|
-
<li>
|
461
|
-
|
462
|
-
<span class='name'>opts</span>
|
463
|
-
|
464
|
-
|
465
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
466
|
-
|
467
|
-
|
468
|
-
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
469
|
-
|
470
|
-
|
471
|
-
—
|
454
|
+
<span class='comment'># => 'abc'</span></code></pre>
|
455
|
+
|
456
|
+
</div>
|
457
|
+
<p class="tag_title">Parameters:</p>
|
458
|
+
<ul class="param">
|
459
|
+
|
460
|
+
<li>
|
461
|
+
|
462
|
+
<span class='name'>opts</span>
|
463
|
+
|
464
|
+
|
465
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
466
|
+
|
467
|
+
|
468
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
469
|
+
|
470
|
+
|
471
|
+
—
|
472
472
|
<div class='inline'>
|
473
473
|
<p>({}) Configuration options.</p>
|
474
|
-
</div>
|
475
|
-
|
476
|
-
</li>
|
477
|
-
|
478
|
-
</ul>
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
484
|
-
<ul class="option">
|
485
|
-
|
486
|
-
<li>
|
487
|
-
<span class="name">:config_collection</span>
|
488
|
-
<span class="type">(<tt>Array</tt>)</span>
|
489
|
-
<span class="default">
|
490
|
-
|
491
|
-
— default:
|
492
|
-
<tt>[:config</tt>, <tt>'config']</tt>
|
493
|
-
|
494
|
-
</span>
|
495
|
-
|
474
|
+
</div>
|
475
|
+
|
476
|
+
</li>
|
477
|
+
|
478
|
+
</ul>
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
484
|
+
<ul class="option">
|
485
|
+
|
486
|
+
<li>
|
487
|
+
<span class="name">:config_collection</span>
|
488
|
+
<span class="type">(<tt>Array</tt>)</span>
|
489
|
+
<span class="default">
|
490
|
+
|
491
|
+
— default:
|
492
|
+
<tt>[:config</tt>, <tt>'config']</tt>
|
493
|
+
|
494
|
+
</span>
|
495
|
+
|
496
496
|
— <div class='inline'>
|
497
497
|
<p>Key value pair array to se a custom collection.</p>
|
498
|
-
</div>
|
499
|
-
|
500
|
-
</li>
|
501
|
-
|
502
|
-
</ul>
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
</div><table class="source_code">
|
507
|
-
<tr>
|
508
|
-
<td>
|
498
|
+
</div>
|
499
|
+
|
500
|
+
</li>
|
501
|
+
|
502
|
+
</ul>
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
</div><table class="source_code">
|
507
|
+
<tr>
|
508
|
+
<td>
|
509
509
|
<pre class="lines">
|
510
510
|
|
511
511
|
|
512
512
|
19
|
513
513
|
20
|
514
514
|
21
|
515
|
-
22</pre>
|
516
|
-
</td>
|
517
|
-
<td>
|
515
|
+
22</pre>
|
516
|
+
</td>
|
517
|
+
<td>
|
518
518
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/plugin/config_behavior.rb', line 19</span>
|
519
519
|
|
520
520
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize_hook_core_config_behavior'>initialize_hook_core_config_behavior</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
521
521
|
<span class='ivar'>@config_collection_key</span><span class='comma'>,</span> <span class='id identifier rubyid_collection'>collection</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:config_collection</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='symbol'>:config</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>config</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
522
522
|
<span class='id identifier rubyid_add_collection'>add_collection</span> <span class='id identifier rubyid_config_collection_key'>config_collection_key</span><span class='comma'>,</span> <span class='id identifier rubyid_collection'>collection</span>
|
523
|
-
<span class='kw'>end</span></pre>
|
524
|
-
</td>
|
525
|
-
</tr>
|
526
|
-
</table>
|
527
|
-
</div>
|
528
|
-
|
529
|
-
</div>
|
530
|
-
|
531
|
-
</div>
|
532
|
-
|
533
|
-
<div id="footer">
|
534
|
-
Generated on
|
535
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
536
|
-
0.9.
|
537
|
-
</div>
|
538
|
-
|
539
|
-
</div>
|
540
|
-
</body>
|
523
|
+
<span class='kw'>end</span></pre>
|
524
|
+
</td>
|
525
|
+
</tr>
|
526
|
+
</table>
|
527
|
+
</div>
|
528
|
+
|
529
|
+
</div>
|
530
|
+
|
531
|
+
</div>
|
532
|
+
|
533
|
+
<div id="footer">
|
534
|
+
Generated on Fri Sep 27 02:01:31 2019 by
|
535
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
536
|
+
0.9.20 (ruby-2.5.3).
|
537
|
+
</div>
|
538
|
+
|
539
|
+
</div>
|
540
|
+
</body>
|
541
541
|
</html>
|