caricature 0.6.3 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +98 -0
- data/Rakefile +250 -47
- data/caricature.gemspec +79 -190
- data/lib/caricature/clr/descriptor.rb +14 -4
- data/lib/caricature/clr/isolation.rb +9 -0
- data/lib/caricature/clr/isolator.rb +4 -0
- data/lib/caricature/clr/messenger.rb +12 -17
- data/lib/caricature/clr.rb +1 -1
- data/lib/caricature/descriptor.rb +1 -1
- data/lib/caricature/expectation.rb +21 -11
- data/lib/caricature/isolation.rb +9 -3
- data/lib/caricature/isolator.rb +25 -9
- data/lib/caricature/messenger.rb +1 -1
- data/lib/caricature/verification.rb +2 -1
- data/lib/caricature/version.rb +6 -0
- data/lib/caricature.rb +8 -5
- data/spec/bacon_helper.rb +50 -30
- data/spec/bin/ClrModels.dll +0 -0
- data/spec/bin/ClrModels.dll.mdb +0 -0
- data/spec/integration/callback_spec.rb +157 -0
- data/spec/integration/ruby_to_ruby_spec.rb +12 -1
- data/spec/models/ClrModels.cs +8 -8
- data/spec/unit/expectation_spec.rb +35 -0
- metadata +35 -125
- data/.gitignore +0 -4
- data/README.markdown +0 -80
- data/VERSION +0 -1
- data/doc/Array.html +0 -251
- data/doc/Caricature/ArgumentRecording.html +0 -366
- data/doc/Caricature/ClrClassDescriptor.html +0 -303
- data/doc/Caricature/ClrClassMessenger.html +0 -263
- data/doc/Caricature/ClrInterfaceDescriptor.html +0 -295
- data/doc/Caricature/ClrInterfaceIsolator.html +0 -365
- data/doc/Caricature/ClrInterfaceMessenger.html +0 -260
- data/doc/Caricature/ClrIsolator.html +0 -425
- data/doc/Caricature/Expectation.html +0 -549
- data/doc/Caricature/ExpectationBuilder.html +0 -308
- data/doc/Caricature/ExpectationSyntax.html +0 -466
- data/doc/Caricature/Expectations.html +0 -347
- data/doc/Caricature/Interception/ClassMethods.html +0 -364
- data/doc/Caricature/Interception.html +0 -534
- data/doc/Caricature/Isolation.html +0 -763
- data/doc/Caricature/Isolator.html +0 -519
- data/doc/Caricature/MemberDescriptor.html +0 -335
- data/doc/Caricature/Messenger.html +0 -413
- data/doc/Caricature/MethodCallRecorder.html +0 -404
- data/doc/Caricature/MethodCallRecording.html +0 -493
- data/doc/Caricature/RubyIsolator.html +0 -416
- data/doc/Caricature/RubyMessenger.html +0 -261
- data/doc/Caricature/RubyObjectDescriptor.html +0 -289
- data/doc/Caricature/TypeDescriptor.html +0 -378
- data/doc/Caricature/Verification.html +0 -443
- data/doc/Caricature.html +0 -358
- data/doc/Class.html +0 -287
- data/doc/Hash.html +0 -255
- data/doc/Module.html +0 -287
- data/doc/Object.html +0 -409
- data/doc/README_markdown.html +0 -241
- data/doc/String.html +0 -369
- data/doc/System/String.html +0 -289
- data/doc/System/Type.html +0 -289
- data/doc/System.html +0 -207
- data/doc/created.rid +0 -1
- 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/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_green.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 +0 -342
- data/doc/js/darkfish.js +0 -116
- data/doc/js/jquery.js +0 -32
- data/doc/js/quicksearch.js +0 -114
- data/doc/js/thickbox-compressed.js +0 -10
- data/doc/lib/caricature/clr/aspnet_mvc_rb.html +0 -52
- data/doc/lib/caricature/clr/descriptor_rb.html +0 -52
- data/doc/lib/caricature/clr/isolation_rb.html +0 -52
- data/doc/lib/caricature/clr/isolator_rb.html +0 -52
- data/doc/lib/caricature/clr/messenger_rb.html +0 -52
- data/doc/lib/caricature/clr_rb.html +0 -52
- data/doc/lib/caricature/descriptor_rb.html +0 -52
- data/doc/lib/caricature/expectation_rb.html +0 -52
- data/doc/lib/caricature/isolation_rb.html +0 -52
- data/doc/lib/caricature/isolator_rb.html +0 -52
- data/doc/lib/caricature/messaging_rb.html +0 -52
- data/doc/lib/caricature/messenger_rb.html +0 -52
- data/doc/lib/caricature/method_call_recorder_rb.html +0 -52
- data/doc/lib/caricature/verification_rb.html +0 -52
- data/doc/lib/caricature_rb.html +0 -52
- data/doc/lib/core_ext/array_rb.html +0 -52
- data/doc/lib/core_ext/class_rb.html +0 -52
- data/doc/lib/core_ext/core_ext_rb.html +0 -52
- data/doc/lib/core_ext/hash_rb.html +0 -52
- data/doc/lib/core_ext/module_rb.html +0 -52
- data/doc/lib/core_ext/object_rb.html +0 -52
- data/doc/lib/core_ext/string_rb.html +0 -52
- data/doc/lib/core_ext/system/string_rb.html +0 -52
- data/doc/lib/core_ext/system/type_rb.html +0 -52
- data/doc/rdoc.css +0 -696
- data/irb_init.rb +0 -9
- data/lib/bin/Workarounds.dll +0 -0
- data/lib/bin/Workarounds.pdb +0 -0
- data/pkg/.gitignore +0 -0
- data/pkg/caricature-0.1.0.gem +0 -0
- data/pkg/caricature-0.5.0.gem +0 -0
- data/pkg/caricature-0.6.0.gem +0 -0
- data/spec/bin/.gitignore +0 -0
- data/workarounds/ReflectionHelper.cs +0 -30
@@ -1,261 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
-
|
8
|
-
<title>Class: Caricature::RubyMessenger</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
-
|
12
|
-
<script src="../js/jquery.js" type="text/javascript"
|
13
|
-
charset="utf-8"></script>
|
14
|
-
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
-
charset="utf-8"></script>
|
16
|
-
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
-
charset="utf-8"></script>
|
18
|
-
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
-
charset="utf-8"></script>
|
20
|
-
|
21
|
-
</head>
|
22
|
-
<body class="class">
|
23
|
-
|
24
|
-
<div id="metadata">
|
25
|
-
<div id="file-metadata">
|
26
|
-
<div id="file-list-section" class="section">
|
27
|
-
<h3 class="section-header">In Files</h3>
|
28
|
-
<div class="section-body">
|
29
|
-
<ul>
|
30
|
-
|
31
|
-
<li><a href="../lib/caricature/messenger_rb.html?TB_iframe=true&height=550&width=785"
|
32
|
-
class="thickbox" title="lib/caricature/messenger.rb">lib/caricature/messenger.rb</a></li>
|
33
|
-
|
34
|
-
</ul>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
|
38
|
-
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div id="class-metadata">
|
42
|
-
|
43
|
-
<!-- Parent Class -->
|
44
|
-
|
45
|
-
<div id="parent-class-section" class="section">
|
46
|
-
<h3 class="section-header">Parent</h3>
|
47
|
-
|
48
|
-
<p class="link">Messenger</p>
|
49
|
-
|
50
|
-
</div>
|
51
|
-
|
52
|
-
|
53
|
-
<!-- Namespace Contents -->
|
54
|
-
|
55
|
-
|
56
|
-
<!-- Method Quickref -->
|
57
|
-
|
58
|
-
<div id="method-list-section" class="section">
|
59
|
-
<h3 class="section-header">Methods</h3>
|
60
|
-
<ul class="link-list">
|
61
|
-
|
62
|
-
<li><a href="#M000064">#internal_deliver</a></li>
|
63
|
-
|
64
|
-
</ul>
|
65
|
-
</div>
|
66
|
-
|
67
|
-
|
68
|
-
<!-- Included Modules -->
|
69
|
-
|
70
|
-
</div>
|
71
|
-
|
72
|
-
<div id="project-metadata">
|
73
|
-
|
74
|
-
|
75
|
-
<div id="fileindex-section" class="section project-section">
|
76
|
-
<h3 class="section-header">Files</h3>
|
77
|
-
<ul>
|
78
|
-
|
79
|
-
<li class="file"><a href="../README_markdown.html">README.markdown</a></li>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
</div>
|
83
|
-
|
84
|
-
|
85
|
-
<div id="classindex-section" class="section project-section">
|
86
|
-
<h3 class="section-header">Class Index
|
87
|
-
<span class="search-toggle"><img src="../images/find.png"
|
88
|
-
height="16" width="16" alt="[+]"
|
89
|
-
title="show/hide quicksearch" /></span></h3>
|
90
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
91
|
-
<fieldset>
|
92
|
-
<legend>Quicksearch</legend>
|
93
|
-
<input type="text" name="quicksearch" value=""
|
94
|
-
class="quicksearch-field" />
|
95
|
-
</fieldset>
|
96
|
-
</form>
|
97
|
-
|
98
|
-
<ul class="link-list">
|
99
|
-
|
100
|
-
<li><a href="../Caricature.html">Caricature</a></li>
|
101
|
-
|
102
|
-
<li><a href="../Caricature/ArgumentRecording.html">Caricature::ArgumentRecording</a></li>
|
103
|
-
|
104
|
-
<li><a href="../Caricature/ClrClassDescriptor.html">Caricature::ClrClassDescriptor</a></li>
|
105
|
-
|
106
|
-
<li><a href="../Caricature/ClrClassMessenger.html">Caricature::ClrClassMessenger</a></li>
|
107
|
-
|
108
|
-
<li><a href="../Caricature/ClrInterfaceDescriptor.html">Caricature::ClrInterfaceDescriptor</a></li>
|
109
|
-
|
110
|
-
<li><a href="../Caricature/ClrInterfaceIsolator.html">Caricature::ClrInterfaceIsolator</a></li>
|
111
|
-
|
112
|
-
<li><a href="../Caricature/ClrInterfaceMessenger.html">Caricature::ClrInterfaceMessenger</a></li>
|
113
|
-
|
114
|
-
<li><a href="../Caricature/ClrIsolator.html">Caricature::ClrIsolator</a></li>
|
115
|
-
|
116
|
-
<li><a href="../Caricature/Expectation.html">Caricature::Expectation</a></li>
|
117
|
-
|
118
|
-
<li><a href="../Caricature/ExpectationBuilder.html">Caricature::ExpectationBuilder</a></li>
|
119
|
-
|
120
|
-
<li><a href="../Caricature/ExpectationSyntax.html">Caricature::ExpectationSyntax</a></li>
|
121
|
-
|
122
|
-
<li><a href="../Caricature/Expectations.html">Caricature::Expectations</a></li>
|
123
|
-
|
124
|
-
<li><a href="../Caricature/Interception.html">Caricature::Interception</a></li>
|
125
|
-
|
126
|
-
<li><a href="../Caricature/Interception/ClassMethods.html">Caricature::Interception::ClassMethods</a></li>
|
127
|
-
|
128
|
-
<li><a href="../Caricature/Isolation.html">Caricature::Isolation</a></li>
|
129
|
-
|
130
|
-
<li><a href="../Caricature/Isolator.html">Caricature::Isolator</a></li>
|
131
|
-
|
132
|
-
<li><a href="../Caricature/MemberDescriptor.html">Caricature::MemberDescriptor</a></li>
|
133
|
-
|
134
|
-
<li><a href="../Caricature/Messenger.html">Caricature::Messenger</a></li>
|
135
|
-
|
136
|
-
<li><a href="../Caricature/MethodCallRecorder.html">Caricature::MethodCallRecorder</a></li>
|
137
|
-
|
138
|
-
<li><a href="../Caricature/MethodCallRecording.html">Caricature::MethodCallRecording</a></li>
|
139
|
-
|
140
|
-
<li><a href="../Caricature/RubyIsolator.html">Caricature::RubyIsolator</a></li>
|
141
|
-
|
142
|
-
<li><a href="../Caricature/RubyMessenger.html">Caricature::RubyMessenger</a></li>
|
143
|
-
|
144
|
-
<li><a href="../Caricature/RubyObjectDescriptor.html">Caricature::RubyObjectDescriptor</a></li>
|
145
|
-
|
146
|
-
<li><a href="../Caricature/TypeDescriptor.html">Caricature::TypeDescriptor</a></li>
|
147
|
-
|
148
|
-
<li><a href="../Caricature/Verification.html">Caricature::Verification</a></li>
|
149
|
-
|
150
|
-
<li><a href="../System.html">System</a></li>
|
151
|
-
|
152
|
-
<li><a href="../System/String.html">System::String</a></li>
|
153
|
-
|
154
|
-
<li><a href="../System/Type.html">System::Type</a></li>
|
155
|
-
|
156
|
-
<li><a href="../Array.html">Array</a></li>
|
157
|
-
|
158
|
-
<li><a href="../Class.html">Class</a></li>
|
159
|
-
|
160
|
-
<li><a href="../Hash.html">Hash</a></li>
|
161
|
-
|
162
|
-
<li><a href="../Module.html">Module</a></li>
|
163
|
-
|
164
|
-
<li><a href="../Object.html">Object</a></li>
|
165
|
-
|
166
|
-
<li><a href="../String.html">String</a></li>
|
167
|
-
|
168
|
-
</ul>
|
169
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
170
|
-
</div>
|
171
|
-
|
172
|
-
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
<div id="documentation">
|
177
|
-
<h1 class="class">Caricature::RubyMessenger</h1>
|
178
|
-
|
179
|
-
<div id="description">
|
180
|
-
<p>
|
181
|
-
Encapsulates sending messages to Ruby isolations
|
182
|
-
</p>
|
183
|
-
|
184
|
-
</div>
|
185
|
-
|
186
|
-
<!-- Constants -->
|
187
|
-
|
188
|
-
|
189
|
-
<!-- Attributes -->
|
190
|
-
|
191
|
-
|
192
|
-
<!-- Methods -->
|
193
|
-
|
194
|
-
<div id="protected-instance-method-details" class="method-section section">
|
195
|
-
<h3 class="section-header">Protected Instance Methods</h3>
|
196
|
-
|
197
|
-
|
198
|
-
<div id="internal-deliver-method" class="method-detail ">
|
199
|
-
<a name="M000064"></a>
|
200
|
-
|
201
|
-
<div class="method-heading">
|
202
|
-
|
203
|
-
<span class="method-name">internal_deliver</span><span
|
204
|
-
class="method-args">(mode, method_name, return_type, *args, &b)</span>
|
205
|
-
<span class="method-click-advice">click to toggle source</span>
|
206
|
-
|
207
|
-
</div>
|
208
|
-
|
209
|
-
<div class="method-description">
|
210
|
-
|
211
|
-
<p>
|
212
|
-
implementation of the template method for looking up the expectation and/or
|
213
|
-
returning a value
|
214
|
-
</p>
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
<div class="method-source-code"
|
219
|
-
id="internal-deliver-source">
|
220
|
-
<pre>
|
221
|
-
<span class="ruby-comment cmt"># File lib/caricature/messenger.rb, line 43</span>
|
222
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">internal_deliver</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">method_name</span>, <span class="ruby-identifier">return_type</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
223
|
-
<span class="ruby-identifier">exp</span> = <span class="ruby-identifier">expectations</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">method_name</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
224
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exp</span>
|
225
|
-
<span class="ruby-identifier">res</span> = <span class="ruby-identifier">instance</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">method_name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exp</span>.<span class="ruby-identifier">super_before?</span>
|
226
|
-
<span class="ruby-identifier">res</span> = <span class="ruby-identifier">exp</span>.<span class="ruby-identifier">execute</span> <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
227
|
-
<span class="ruby-identifier">res</span> = <span class="ruby-identifier">instance</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">method_name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">exp</span>.<span class="ruby-identifier">super_before?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">exp</span>.<span class="ruby-identifier">call_super?</span>
|
228
|
-
<span class="ruby-identifier">res</span>
|
229
|
-
<span class="ruby-keyword kw">else</span>
|
230
|
-
<span class="ruby-keyword kw">nil</span>
|
231
|
-
<span class="ruby-keyword kw">end</span>
|
232
|
-
<span class="ruby-keyword kw">end</span></pre>
|
233
|
-
</div>
|
234
|
-
|
235
|
-
</div>
|
236
|
-
|
237
|
-
|
238
|
-
</div>
|
239
|
-
|
240
|
-
|
241
|
-
</div>
|
242
|
-
|
243
|
-
|
244
|
-
</div>
|
245
|
-
|
246
|
-
|
247
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
248
|
-
|
249
|
-
<p>Disabled; run with --debug to generate this.</p>
|
250
|
-
|
251
|
-
</div>
|
252
|
-
|
253
|
-
<div id="validator-badges">
|
254
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
255
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
256
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
257
|
-
</div>
|
258
|
-
|
259
|
-
</body>
|
260
|
-
</html>
|
261
|
-
|
@@ -1,289 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
-
|
8
|
-
<title>Class: Caricature::RubyObjectDescriptor</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
-
|
12
|
-
<script src="../js/jquery.js" type="text/javascript"
|
13
|
-
charset="utf-8"></script>
|
14
|
-
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
-
charset="utf-8"></script>
|
16
|
-
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
-
charset="utf-8"></script>
|
18
|
-
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
-
charset="utf-8"></script>
|
20
|
-
|
21
|
-
</head>
|
22
|
-
<body class="class">
|
23
|
-
|
24
|
-
<div id="metadata">
|
25
|
-
<div id="file-metadata">
|
26
|
-
<div id="file-list-section" class="section">
|
27
|
-
<h3 class="section-header">In Files</h3>
|
28
|
-
<div class="section-body">
|
29
|
-
<ul>
|
30
|
-
|
31
|
-
<li><a href="../lib/caricature/descriptor_rb.html?TB_iframe=true&height=550&width=785"
|
32
|
-
class="thickbox" title="lib/caricature/descriptor.rb">lib/caricature/descriptor.rb</a></li>
|
33
|
-
|
34
|
-
</ul>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
|
38
|
-
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div id="class-metadata">
|
42
|
-
|
43
|
-
<!-- Parent Class -->
|
44
|
-
|
45
|
-
<div id="parent-class-section" class="section">
|
46
|
-
<h3 class="section-header">Parent</h3>
|
47
|
-
|
48
|
-
<p class="link">TypeDescriptor</p>
|
49
|
-
|
50
|
-
</div>
|
51
|
-
|
52
|
-
|
53
|
-
<!-- Namespace Contents -->
|
54
|
-
|
55
|
-
|
56
|
-
<!-- Method Quickref -->
|
57
|
-
|
58
|
-
<div id="method-list-section" class="section">
|
59
|
-
<h3 class="section-header">Methods</h3>
|
60
|
-
<ul class="link-list">
|
61
|
-
|
62
|
-
<li><a href="#M000027">#initialize_class_members_for</a></li>
|
63
|
-
|
64
|
-
<li><a href="#M000026">#initialize_instance_members_for</a></li>
|
65
|
-
|
66
|
-
</ul>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
|
70
|
-
<!-- Included Modules -->
|
71
|
-
|
72
|
-
</div>
|
73
|
-
|
74
|
-
<div id="project-metadata">
|
75
|
-
|
76
|
-
|
77
|
-
<div id="fileindex-section" class="section project-section">
|
78
|
-
<h3 class="section-header">Files</h3>
|
79
|
-
<ul>
|
80
|
-
|
81
|
-
<li class="file"><a href="../README_markdown.html">README.markdown</a></li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
</div>
|
85
|
-
|
86
|
-
|
87
|
-
<div id="classindex-section" class="section project-section">
|
88
|
-
<h3 class="section-header">Class Index
|
89
|
-
<span class="search-toggle"><img src="../images/find.png"
|
90
|
-
height="16" width="16" alt="[+]"
|
91
|
-
title="show/hide quicksearch" /></span></h3>
|
92
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
93
|
-
<fieldset>
|
94
|
-
<legend>Quicksearch</legend>
|
95
|
-
<input type="text" name="quicksearch" value=""
|
96
|
-
class="quicksearch-field" />
|
97
|
-
</fieldset>
|
98
|
-
</form>
|
99
|
-
|
100
|
-
<ul class="link-list">
|
101
|
-
|
102
|
-
<li><a href="../Caricature.html">Caricature</a></li>
|
103
|
-
|
104
|
-
<li><a href="../Caricature/ArgumentRecording.html">Caricature::ArgumentRecording</a></li>
|
105
|
-
|
106
|
-
<li><a href="../Caricature/ClrClassDescriptor.html">Caricature::ClrClassDescriptor</a></li>
|
107
|
-
|
108
|
-
<li><a href="../Caricature/ClrClassMessenger.html">Caricature::ClrClassMessenger</a></li>
|
109
|
-
|
110
|
-
<li><a href="../Caricature/ClrInterfaceDescriptor.html">Caricature::ClrInterfaceDescriptor</a></li>
|
111
|
-
|
112
|
-
<li><a href="../Caricature/ClrInterfaceIsolator.html">Caricature::ClrInterfaceIsolator</a></li>
|
113
|
-
|
114
|
-
<li><a href="../Caricature/ClrInterfaceMessenger.html">Caricature::ClrInterfaceMessenger</a></li>
|
115
|
-
|
116
|
-
<li><a href="../Caricature/ClrIsolator.html">Caricature::ClrIsolator</a></li>
|
117
|
-
|
118
|
-
<li><a href="../Caricature/Expectation.html">Caricature::Expectation</a></li>
|
119
|
-
|
120
|
-
<li><a href="../Caricature/ExpectationBuilder.html">Caricature::ExpectationBuilder</a></li>
|
121
|
-
|
122
|
-
<li><a href="../Caricature/ExpectationSyntax.html">Caricature::ExpectationSyntax</a></li>
|
123
|
-
|
124
|
-
<li><a href="../Caricature/Expectations.html">Caricature::Expectations</a></li>
|
125
|
-
|
126
|
-
<li><a href="../Caricature/Interception.html">Caricature::Interception</a></li>
|
127
|
-
|
128
|
-
<li><a href="../Caricature/Interception/ClassMethods.html">Caricature::Interception::ClassMethods</a></li>
|
129
|
-
|
130
|
-
<li><a href="../Caricature/Isolation.html">Caricature::Isolation</a></li>
|
131
|
-
|
132
|
-
<li><a href="../Caricature/Isolator.html">Caricature::Isolator</a></li>
|
133
|
-
|
134
|
-
<li><a href="../Caricature/MemberDescriptor.html">Caricature::MemberDescriptor</a></li>
|
135
|
-
|
136
|
-
<li><a href="../Caricature/Messenger.html">Caricature::Messenger</a></li>
|
137
|
-
|
138
|
-
<li><a href="../Caricature/MethodCallRecorder.html">Caricature::MethodCallRecorder</a></li>
|
139
|
-
|
140
|
-
<li><a href="../Caricature/MethodCallRecording.html">Caricature::MethodCallRecording</a></li>
|
141
|
-
|
142
|
-
<li><a href="../Caricature/RubyIsolator.html">Caricature::RubyIsolator</a></li>
|
143
|
-
|
144
|
-
<li><a href="../Caricature/RubyMessenger.html">Caricature::RubyMessenger</a></li>
|
145
|
-
|
146
|
-
<li><a href="../Caricature/RubyObjectDescriptor.html">Caricature::RubyObjectDescriptor</a></li>
|
147
|
-
|
148
|
-
<li><a href="../Caricature/TypeDescriptor.html">Caricature::TypeDescriptor</a></li>
|
149
|
-
|
150
|
-
<li><a href="../Caricature/Verification.html">Caricature::Verification</a></li>
|
151
|
-
|
152
|
-
<li><a href="../System.html">System</a></li>
|
153
|
-
|
154
|
-
<li><a href="../System/String.html">System::String</a></li>
|
155
|
-
|
156
|
-
<li><a href="../System/Type.html">System::Type</a></li>
|
157
|
-
|
158
|
-
<li><a href="../Array.html">Array</a></li>
|
159
|
-
|
160
|
-
<li><a href="../Class.html">Class</a></li>
|
161
|
-
|
162
|
-
<li><a href="../Hash.html">Hash</a></li>
|
163
|
-
|
164
|
-
<li><a href="../Module.html">Module</a></li>
|
165
|
-
|
166
|
-
<li><a href="../Object.html">Object</a></li>
|
167
|
-
|
168
|
-
<li><a href="../String.html">String</a></li>
|
169
|
-
|
170
|
-
</ul>
|
171
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
172
|
-
</div>
|
173
|
-
|
174
|
-
|
175
|
-
</div>
|
176
|
-
</div>
|
177
|
-
|
178
|
-
<div id="documentation">
|
179
|
-
<h1 class="class">Caricature::RubyObjectDescriptor</h1>
|
180
|
-
|
181
|
-
<div id="description">
|
182
|
-
<p>
|
183
|
-
Describes a ruby object.
|
184
|
-
</p>
|
185
|
-
|
186
|
-
</div>
|
187
|
-
|
188
|
-
<!-- Constants -->
|
189
|
-
|
190
|
-
|
191
|
-
<!-- Attributes -->
|
192
|
-
|
193
|
-
|
194
|
-
<!-- Methods -->
|
195
|
-
|
196
|
-
<div id="public-instance-method-details" class="method-section section">
|
197
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
198
|
-
|
199
|
-
|
200
|
-
<div id="initialize-class-members-for-method" class="method-detail ">
|
201
|
-
<a name="M000027"></a>
|
202
|
-
|
203
|
-
<div class="method-heading">
|
204
|
-
|
205
|
-
<span class="method-name">initialize_class_members_for</span><span
|
206
|
-
class="method-args">(klass)</span>
|
207
|
-
<span class="method-click-advice">click to toggle source</span>
|
208
|
-
|
209
|
-
</div>
|
210
|
-
|
211
|
-
<div class="method-description">
|
212
|
-
|
213
|
-
<p>
|
214
|
-
collects all the members that aren’t a member of
|
215
|
-
Object.singleton_methods
|
216
|
-
</p>
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
<div class="method-source-code"
|
221
|
-
id="initialize-class-members-for-source">
|
222
|
-
<pre>
|
223
|
-
<span class="ruby-comment cmt"># File lib/caricature/descriptor.rb, line 68</span>
|
224
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_class_members_for</span>(<span class="ruby-identifier">klass</span>)
|
225
|
-
<span class="ruby-ivar">@class_members</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">methods</span>(<span class="ruby-keyword kw">false</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mn</span><span class="ruby-operator">|</span> <span class="ruby-constant">MemberDescriptor</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">mn</span>) }
|
226
|
-
<span class="ruby-keyword kw">end</span></pre>
|
227
|
-
</div>
|
228
|
-
|
229
|
-
</div>
|
230
|
-
|
231
|
-
|
232
|
-
</div>
|
233
|
-
|
234
|
-
|
235
|
-
<div id="initialize-instance-members-for-method" class="method-detail ">
|
236
|
-
<a name="M000026"></a>
|
237
|
-
|
238
|
-
<div class="method-heading">
|
239
|
-
|
240
|
-
<span class="method-name">initialize_instance_members_for</span><span
|
241
|
-
class="method-args">(klass)</span>
|
242
|
-
<span class="method-click-advice">click to toggle source</span>
|
243
|
-
|
244
|
-
</div>
|
245
|
-
|
246
|
-
<div class="method-description">
|
247
|
-
|
248
|
-
<p>
|
249
|
-
collects all the members that are defined by this class
|
250
|
-
</p>
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
<div class="method-source-code"
|
255
|
-
id="initialize-instance-members-for-source">
|
256
|
-
<pre>
|
257
|
-
<span class="ruby-comment cmt"># File lib/caricature/descriptor.rb, line 63</span>
|
258
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_instance_members_for</span>(<span class="ruby-identifier">klass</span>)
|
259
|
-
<span class="ruby-ivar">@instance_members</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">instance_methods</span>(<span class="ruby-keyword kw">false</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mn</span><span class="ruby-operator">|</span> <span class="ruby-constant">MemberDescriptor</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">mn</span>) }
|
260
|
-
<span class="ruby-keyword kw">end</span></pre>
|
261
|
-
</div>
|
262
|
-
|
263
|
-
</div>
|
264
|
-
|
265
|
-
|
266
|
-
</div>
|
267
|
-
|
268
|
-
|
269
|
-
</div>
|
270
|
-
|
271
|
-
|
272
|
-
</div>
|
273
|
-
|
274
|
-
|
275
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
276
|
-
|
277
|
-
<p>Disabled; run with --debug to generate this.</p>
|
278
|
-
|
279
|
-
</div>
|
280
|
-
|
281
|
-
<div id="validator-badges">
|
282
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
283
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
284
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
285
|
-
</div>
|
286
|
-
|
287
|
-
</body>
|
288
|
-
</html>
|
289
|
-
|