dirt-core 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +8 -0
- data/Gemfile.lock +46 -0
- data/MIT-LICENSE +23 -0
- data/README +14 -0
- data/doc/BlockValidator.html +272 -0
- data/doc/ClosureValidator.html +276 -0
- data/doc/Dirt.html +158 -0
- data/doc/Dirt/FooBar.html +167 -0
- data/doc/Dirt/HerpZerp.html +161 -0
- data/doc/Dirt/HerpZerp/DerpGerp.html +161 -0
- data/doc/Dirt/HerpZerp/DerpGerp/FooBar.html +167 -0
- data/doc/Dirt/MemoryPersister.html +453 -0
- data/doc/Dirt/MemoryRecord.html +157 -0
- data/doc/Dirt/MissingRecordError.html +157 -0
- data/doc/Dirt/Model.html +320 -0
- data/doc/Dirt/NoPersisterError.html +157 -0
- data/doc/Dirt/Relation.html +338 -0
- data/doc/Dirt/Role.html +345 -0
- data/doc/Dirt/TooManyRecordsError.html +157 -0
- data/doc/Dirt/TransactionError.html +157 -0
- data/doc/ExistenceValidator.html +316 -0
- data/doc/FooBar.html +153 -0
- data/doc/Gemfile.html +131 -0
- data/doc/HerpZerp.html +147 -0
- data/doc/HerpZerp/DerpGerp.html +147 -0
- data/doc/HerpZerp/DerpGerp/FooBar.html +153 -0
- data/doc/Persister.html +311 -0
- data/doc/Persisting.html +413 -0
- data/doc/PresenceValidator.html +281 -0
- data/doc/README.html +132 -0
- data/doc/Role.html +309 -0
- data/doc/Scheduler.html +147 -0
- data/doc/SelfExistenceValidator.html +278 -0
- data/doc/TestPersister.html +411 -0
- data/doc/Validating.html +293 -0
- data/doc/created.rid +18 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +110 -0
- data/doc/js/darkfish.js +155 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +203 -0
- data/lib/dirt/bdd/matchers.rb +10 -0
- data/lib/dirt/bdd/persister_spec_helper.rb +213 -0
- data/lib/dirt/bdd/shared_examples.rb +29 -0
- data/lib/dirt/contexts/context.rb +15 -0
- data/lib/dirt/core.rb +36 -0
- data/lib/dirt/errors/missing_record_error.rb +4 -0
- data/lib/dirt/errors/no_persister_error.rb +4 -0
- data/lib/dirt/errors/too_many_records_error.rb +4 -0
- data/lib/dirt/errors/transaction_error.rb +4 -0
- data/lib/dirt/models/model_behaviour.rb +47 -0
- data/lib/dirt/persisters/memory_persister.rb +86 -0
- data/lib/dirt/persisters/persister.rb +54 -0
- data/lib/dirt/persisters/relation.rb +38 -0
- data/lib/dirt/roles/persisting.rb +73 -0
- data/lib/dirt/roles/role.rb +32 -0
- data/lib/dirt/roles/validating.rb +27 -0
- data/lib/dirt/roles/validation/closure_validator.rb +15 -0
- data/lib/dirt/roles/validation/existence_validator.rb +53 -0
- data/lib/dirt/roles/validation/presence_validator.rb +21 -0
- data/lib/dirt/roles/validation/self_existence_validator.rb +18 -0
- data/spec/isolations/closure_validator_spec.rb +57 -0
- data/spec/isolations/context_spec.rb +54 -0
- data/spec/isolations/existence_validator_spec.rb +151 -0
- data/spec/isolations/memory_persister_spec.rb +175 -0
- data/spec/isolations/model_spec.rb +91 -0
- data/spec/isolations/persister_spec.rb +113 -0
- data/spec/isolations/persisting_spec.rb +266 -0
- data/spec/isolations/presence_validator_spec.rb +63 -0
- data/spec/isolations/role_spec.rb +116 -0
- data/spec/isolations/self_existence_validator_spec.rb +64 -0
- data/spec/isolations/spec_helper.rb +26 -0
- data/spec/isolations/validating_spec.rb +88 -0
- metadata +161 -0
data/doc/README.html
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>README - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="project-metadata">
|
47
|
+
<nav id="fileindex-section" class="section project-section">
|
48
|
+
<h3 class="section-header">Pages</h3>
|
49
|
+
|
50
|
+
<ul>
|
51
|
+
|
52
|
+
<li class="file"><a href="./README.html">README</a>
|
53
|
+
|
54
|
+
</ul>
|
55
|
+
</nav>
|
56
|
+
|
57
|
+
<nav id="classindex-section" class="section project-section">
|
58
|
+
<h3 class="section-header">Class and Module Index</h3>
|
59
|
+
|
60
|
+
<ul class="link-list">
|
61
|
+
|
62
|
+
<li><a href="./Dirt.html">Dirt</a>
|
63
|
+
|
64
|
+
<li><a href="./Dirt/MemoryPersister.html">Dirt::MemoryPersister</a>
|
65
|
+
|
66
|
+
<li><a href="./Dirt/MemoryRecord.html">Dirt::MemoryRecord</a>
|
67
|
+
|
68
|
+
<li><a href="./Dirt/MissingRecordError.html">Dirt::MissingRecordError</a>
|
69
|
+
|
70
|
+
<li><a href="./Dirt/Model.html">Dirt::Model</a>
|
71
|
+
|
72
|
+
<li><a href="./Dirt/NoPersisterError.html">Dirt::NoPersisterError</a>
|
73
|
+
|
74
|
+
<li><a href="./Dirt/Relation.html">Dirt::Relation</a>
|
75
|
+
|
76
|
+
<li><a href="./Dirt/Role.html">Dirt::Role</a>
|
77
|
+
|
78
|
+
<li><a href="./Dirt/TooManyRecordsError.html">Dirt::TooManyRecordsError</a>
|
79
|
+
|
80
|
+
<li><a href="./Dirt/TransactionError.html">Dirt::TransactionError</a>
|
81
|
+
|
82
|
+
<li><a href="./ClosureValidator.html">ClosureValidator</a>
|
83
|
+
|
84
|
+
<li><a href="./ExistenceValidator.html">ExistenceValidator</a>
|
85
|
+
|
86
|
+
<li><a href="./Persister.html">Persister</a>
|
87
|
+
|
88
|
+
<li><a href="./Persisting.html">Persisting</a>
|
89
|
+
|
90
|
+
<li><a href="./PresenceValidator.html">PresenceValidator</a>
|
91
|
+
|
92
|
+
<li><a href="./SelfExistenceValidator.html">SelfExistenceValidator</a>
|
93
|
+
|
94
|
+
<li><a href="./Validating.html">Validating</a>
|
95
|
+
|
96
|
+
</ul>
|
97
|
+
</nav>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
</nav>
|
101
|
+
|
102
|
+
<div id="documentation" class="description">
|
103
|
+
|
104
|
+
<p>DIRT DCI Implementation in Ruby by Tenjin # # # = Dirt # Dirt (DCI
|
105
|
+
Implemented in Ruby by Tenjin) is a framework for creating DCI
|
106
|
+
applications. #</p>
|
107
|
+
<dl class="rdoc-list note-list"><dt># Author
|
108
|
+
<dd>
|
109
|
+
<p><a href="http:/www.Tenjin.ca">Tenjin Inc.</a></p>
|
110
|
+
</dd><dt># Copyright
|
111
|
+
<dd>
|
112
|
+
<p>Copyright © 2014</p>
|
113
|
+
</dd><dt># RDOC Generation Command
|
114
|
+
<dd>
|
115
|
+
<p><code>rdoc -main README lib/ README</code></p>
|
116
|
+
</dd></dl>
|
117
|
+
|
118
|
+
<p># # == Usage # To grow things in <a href="Dirt.html">Dirt</a>, create
|
119
|
+
Contexts for your application, and use Roles to operate on your model
|
120
|
+
objects. # Extend Model to gain helpful methods used in standard <a
|
121
|
+
href="Dirt.html">Dirt</a> applications.</p>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<footer id="validator-badges">
|
128
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
129
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
130
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
131
|
+
</footer>
|
132
|
+
|
data/doc/Role.html
ADDED
@@ -0,0 +1,309 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Role - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/roles/role.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link">Object
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-class">#class</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-method_missing">#method_missing</a>
|
78
|
+
|
79
|
+
<li><a href="#method-i-respond_to-3F">#respond_to?</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div id="project-metadata">
|
87
|
+
<nav id="fileindex-section" class="section project-section">
|
88
|
+
<h3 class="section-header">Pages</h3>
|
89
|
+
|
90
|
+
<ul>
|
91
|
+
|
92
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
93
|
+
|
94
|
+
<li class="file"><a href="./README.html">README</a>
|
95
|
+
|
96
|
+
</ul>
|
97
|
+
</nav>
|
98
|
+
|
99
|
+
<nav id="classindex-section" class="section project-section">
|
100
|
+
<h3 class="section-header">Class and Module Index</h3>
|
101
|
+
|
102
|
+
<ul class="link-list">
|
103
|
+
|
104
|
+
<li><a href="./HerpZerp.html">HerpZerp</a>
|
105
|
+
|
106
|
+
<li><a href="./HerpZerp/DerpGerp.html">HerpZerp::DerpGerp</a>
|
107
|
+
|
108
|
+
<li><a href="./HerpZerp/DerpGerp/FooBar.html">HerpZerp::DerpGerp::FooBar</a>
|
109
|
+
|
110
|
+
<li><a href="./BlockValidator.html">BlockValidator</a>
|
111
|
+
|
112
|
+
<li><a href="./ExistenceValidator.html">ExistenceValidator</a>
|
113
|
+
|
114
|
+
<li><a href="./FooBar.html">FooBar</a>
|
115
|
+
|
116
|
+
<li><a href="./Persister.html">Persister</a>
|
117
|
+
|
118
|
+
<li><a href="./Persisting.html">Persisting</a>
|
119
|
+
|
120
|
+
<li><a href="./PresenceValidator.html">PresenceValidator</a>
|
121
|
+
|
122
|
+
<li><a href="./Role.html">Role</a>
|
123
|
+
|
124
|
+
<li><a href="./Scheduler.html">Scheduler</a>
|
125
|
+
|
126
|
+
<li><a href="./SelfExistenceValidator.html">SelfExistenceValidator</a>
|
127
|
+
|
128
|
+
<li><a href="./TestPersister.html">TestPersister</a>
|
129
|
+
|
130
|
+
<li><a href="./Validating.html">Validating</a>
|
131
|
+
|
132
|
+
</ul>
|
133
|
+
</nav>
|
134
|
+
|
135
|
+
</div>
|
136
|
+
</nav>
|
137
|
+
|
138
|
+
<div id="documentation">
|
139
|
+
<h1 class="class">class Role</h1>
|
140
|
+
|
141
|
+
<div id="description" class="description">
|
142
|
+
|
143
|
+
<p>Roles are part of the DCI system design paradigm. They decorate a model
|
144
|
+
object to extend its behaviour for the context of a single interaction.</p>
|
145
|
+
|
146
|
+
</div><!-- description -->
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<!-- Methods -->
|
161
|
+
|
162
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
163
|
+
<h3 class="section-header">Public Class Methods</h3>
|
164
|
+
|
165
|
+
|
166
|
+
<div id="method-c-new" class="method-detail ">
|
167
|
+
|
168
|
+
<div class="method-heading">
|
169
|
+
<span class="method-name">new</span><span
|
170
|
+
class="method-args">(decorated)</span>
|
171
|
+
<span class="method-click-advice">click to toggle source</span>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
|
175
|
+
<div class="method-description">
|
176
|
+
|
177
|
+
<p>Takes the decorated object.</p>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<div class="method-source-code" id="new-source">
|
182
|
+
<pre><span class="ruby-comment"># File lib/roles/role.rb, line 5</span>
|
183
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">decorated</span>)
|
184
|
+
<span class="ruby-ivar">@decorated</span> = <span class="ruby-identifier">decorated</span>
|
185
|
+
<span class="ruby-keyword">end</span></pre>
|
186
|
+
</div><!-- new-source -->
|
187
|
+
|
188
|
+
</div>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
</div><!-- new-method -->
|
194
|
+
|
195
|
+
|
196
|
+
</section><!-- public-class-method-details -->
|
197
|
+
|
198
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
199
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
200
|
+
|
201
|
+
|
202
|
+
<div id="method-i-class" class="method-detail ">
|
203
|
+
|
204
|
+
<div class="method-heading">
|
205
|
+
<span class="method-name">class</span><span
|
206
|
+
class="method-args">()</span>
|
207
|
+
<span class="method-click-advice">click to toggle source</span>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
<div class="method-description">
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<div class="method-source-code" id="class-source">
|
218
|
+
<pre><span class="ruby-comment"># File lib/roles/role.rb, line 19</span>
|
219
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">class</span>
|
220
|
+
<span class="ruby-ivar">@decorated</span>.<span class="ruby-identifier">class</span>
|
221
|
+
<span class="ruby-keyword">end</span></pre>
|
222
|
+
</div><!-- class-source -->
|
223
|
+
|
224
|
+
</div>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
</div><!-- class-method -->
|
230
|
+
|
231
|
+
|
232
|
+
<div id="method-i-method_missing" class="method-detail ">
|
233
|
+
|
234
|
+
<div class="method-heading">
|
235
|
+
<span class="method-name">method_missing</span><span
|
236
|
+
class="method-args">(method, *args, &block)</span>
|
237
|
+
<span class="method-click-advice">click to toggle source</span>
|
238
|
+
</div>
|
239
|
+
|
240
|
+
|
241
|
+
<div class="method-description">
|
242
|
+
|
243
|
+
<p>Attempts to run the missing method on the decorated object before exploding
|
244
|
+
as normal, with a light tingling sensation.</p>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
<div class="method-source-code" id="method_missing-source">
|
249
|
+
<pre><span class="ruby-comment"># File lib/roles/role.rb, line 11</span>
|
250
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">method</span>, *<span class="ruby-identifier">args</span>, &<span class="ruby-identifier">block</span>)
|
251
|
+
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@decorated</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">method</span>)
|
252
|
+
<span class="ruby-ivar">@decorated</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">method</span>, *<span class="ruby-identifier">args</span>, &<span class="ruby-identifier">block</span>)
|
253
|
+
<span class="ruby-keyword">else</span>
|
254
|
+
<span class="ruby-keyword">super</span>
|
255
|
+
<span class="ruby-keyword">end</span>
|
256
|
+
<span class="ruby-keyword">end</span></pre>
|
257
|
+
</div><!-- method_missing-source -->
|
258
|
+
|
259
|
+
</div>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
</div><!-- method_missing-method -->
|
265
|
+
|
266
|
+
|
267
|
+
<div id="method-i-respond_to-3F" class="method-detail ">
|
268
|
+
|
269
|
+
<div class="method-heading">
|
270
|
+
<span class="method-name">respond_to?</span><span
|
271
|
+
class="method-args">(method, privates = false)</span>
|
272
|
+
<span class="method-click-advice">click to toggle source</span>
|
273
|
+
</div>
|
274
|
+
|
275
|
+
|
276
|
+
<div class="method-description">
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
<div class="method-source-code" id="respond_to-3F-source">
|
283
|
+
<pre><span class="ruby-comment"># File lib/roles/role.rb, line 23</span>
|
284
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">privates</span> = <span class="ruby-keyword">false</span>)
|
285
|
+
<span class="ruby-keyword">super</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@decorated</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">privates</span>)
|
286
|
+
<span class="ruby-keyword">end</span></pre>
|
287
|
+
</div><!-- respond_to-3F-source -->
|
288
|
+
|
289
|
+
</div>
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
</div><!-- respond_to-3F-method -->
|
295
|
+
|
296
|
+
|
297
|
+
</section><!-- public-instance-method-details -->
|
298
|
+
|
299
|
+
</section><!-- 5Buntitled-5D -->
|
300
|
+
|
301
|
+
</div><!-- documentation -->
|
302
|
+
|
303
|
+
|
304
|
+
<footer id="validator-badges">
|
305
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
306
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
307
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
308
|
+
</footer>
|
309
|
+
|
data/doc/Scheduler.html
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module Scheduler - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>spec/isolations/role_spec.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div id="project-metadata">
|
65
|
+
<nav id="fileindex-section" class="section project-section">
|
66
|
+
<h3 class="section-header">Pages</h3>
|
67
|
+
|
68
|
+
<ul>
|
69
|
+
|
70
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
71
|
+
|
72
|
+
<li class="file"><a href="./README.html">README</a>
|
73
|
+
|
74
|
+
</ul>
|
75
|
+
</nav>
|
76
|
+
|
77
|
+
<nav id="classindex-section" class="section project-section">
|
78
|
+
<h3 class="section-header">Class and Module Index</h3>
|
79
|
+
|
80
|
+
<ul class="link-list">
|
81
|
+
|
82
|
+
<li><a href="./HerpZerp.html">HerpZerp</a>
|
83
|
+
|
84
|
+
<li><a href="./HerpZerp/DerpGerp.html">HerpZerp::DerpGerp</a>
|
85
|
+
|
86
|
+
<li><a href="./HerpZerp/DerpGerp/FooBar.html">HerpZerp::DerpGerp::FooBar</a>
|
87
|
+
|
88
|
+
<li><a href="./BlockValidator.html">BlockValidator</a>
|
89
|
+
|
90
|
+
<li><a href="./ExistenceValidator.html">ExistenceValidator</a>
|
91
|
+
|
92
|
+
<li><a href="./FooBar.html">FooBar</a>
|
93
|
+
|
94
|
+
<li><a href="./Persister.html">Persister</a>
|
95
|
+
|
96
|
+
<li><a href="./Persisting.html">Persisting</a>
|
97
|
+
|
98
|
+
<li><a href="./PresenceValidator.html">PresenceValidator</a>
|
99
|
+
|
100
|
+
<li><a href="./Role.html">Role</a>
|
101
|
+
|
102
|
+
<li><a href="./Scheduler.html">Scheduler</a>
|
103
|
+
|
104
|
+
<li><a href="./SelfExistenceValidator.html">SelfExistenceValidator</a>
|
105
|
+
|
106
|
+
<li><a href="./TestPersister.html">TestPersister</a>
|
107
|
+
|
108
|
+
<li><a href="./Validating.html">Validating</a>
|
109
|
+
|
110
|
+
</ul>
|
111
|
+
</nav>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
</nav>
|
115
|
+
|
116
|
+
<div id="documentation">
|
117
|
+
<h1 class="module">module Scheduler</h1>
|
118
|
+
|
119
|
+
<div id="description" class="description">
|
120
|
+
|
121
|
+
</div><!-- description -->
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<!-- Methods -->
|
136
|
+
|
137
|
+
</section><!-- 5Buntitled-5D -->
|
138
|
+
|
139
|
+
</div><!-- documentation -->
|
140
|
+
|
141
|
+
|
142
|
+
<footer id="validator-badges">
|
143
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
144
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
145
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
146
|
+
</footer>
|
147
|
+
|