caricature 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/README.rdoc +98 -0
  2. data/Rakefile +250 -47
  3. data/caricature.gemspec +79 -190
  4. data/lib/caricature/clr/descriptor.rb +14 -4
  5. data/lib/caricature/clr/isolation.rb +9 -0
  6. data/lib/caricature/clr/isolator.rb +4 -0
  7. data/lib/caricature/clr/messenger.rb +12 -17
  8. data/lib/caricature/clr.rb +1 -1
  9. data/lib/caricature/descriptor.rb +1 -1
  10. data/lib/caricature/expectation.rb +21 -11
  11. data/lib/caricature/isolation.rb +9 -3
  12. data/lib/caricature/isolator.rb +25 -9
  13. data/lib/caricature/messenger.rb +1 -1
  14. data/lib/caricature/verification.rb +2 -1
  15. data/lib/caricature/version.rb +6 -0
  16. data/lib/caricature.rb +8 -5
  17. data/spec/bacon_helper.rb +50 -30
  18. data/spec/bin/ClrModels.dll +0 -0
  19. data/spec/bin/ClrModels.dll.mdb +0 -0
  20. data/spec/integration/callback_spec.rb +157 -0
  21. data/spec/integration/ruby_to_ruby_spec.rb +12 -1
  22. data/spec/models/ClrModels.cs +8 -8
  23. data/spec/unit/expectation_spec.rb +35 -0
  24. metadata +35 -125
  25. data/.gitignore +0 -4
  26. data/README.markdown +0 -80
  27. data/VERSION +0 -1
  28. data/doc/Array.html +0 -251
  29. data/doc/Caricature/ArgumentRecording.html +0 -366
  30. data/doc/Caricature/ClrClassDescriptor.html +0 -303
  31. data/doc/Caricature/ClrClassMessenger.html +0 -263
  32. data/doc/Caricature/ClrInterfaceDescriptor.html +0 -295
  33. data/doc/Caricature/ClrInterfaceIsolator.html +0 -365
  34. data/doc/Caricature/ClrInterfaceMessenger.html +0 -260
  35. data/doc/Caricature/ClrIsolator.html +0 -425
  36. data/doc/Caricature/Expectation.html +0 -549
  37. data/doc/Caricature/ExpectationBuilder.html +0 -308
  38. data/doc/Caricature/ExpectationSyntax.html +0 -466
  39. data/doc/Caricature/Expectations.html +0 -347
  40. data/doc/Caricature/Interception/ClassMethods.html +0 -364
  41. data/doc/Caricature/Interception.html +0 -534
  42. data/doc/Caricature/Isolation.html +0 -763
  43. data/doc/Caricature/Isolator.html +0 -519
  44. data/doc/Caricature/MemberDescriptor.html +0 -335
  45. data/doc/Caricature/Messenger.html +0 -413
  46. data/doc/Caricature/MethodCallRecorder.html +0 -404
  47. data/doc/Caricature/MethodCallRecording.html +0 -493
  48. data/doc/Caricature/RubyIsolator.html +0 -416
  49. data/doc/Caricature/RubyMessenger.html +0 -261
  50. data/doc/Caricature/RubyObjectDescriptor.html +0 -289
  51. data/doc/Caricature/TypeDescriptor.html +0 -378
  52. data/doc/Caricature/Verification.html +0 -443
  53. data/doc/Caricature.html +0 -358
  54. data/doc/Class.html +0 -287
  55. data/doc/Hash.html +0 -255
  56. data/doc/Module.html +0 -287
  57. data/doc/Object.html +0 -409
  58. data/doc/README_markdown.html +0 -241
  59. data/doc/String.html +0 -369
  60. data/doc/System/String.html +0 -289
  61. data/doc/System/Type.html +0 -289
  62. data/doc/System.html +0 -207
  63. data/doc/created.rid +0 -1
  64. data/doc/images/brick.png +0 -0
  65. data/doc/images/brick_link.png +0 -0
  66. data/doc/images/bug.png +0 -0
  67. data/doc/images/bullet_black.png +0 -0
  68. data/doc/images/bullet_toggle_minus.png +0 -0
  69. data/doc/images/bullet_toggle_plus.png +0 -0
  70. data/doc/images/date.png +0 -0
  71. data/doc/images/find.png +0 -0
  72. data/doc/images/loadingAnimation.gif +0 -0
  73. data/doc/images/macFFBgHack.png +0 -0
  74. data/doc/images/package.png +0 -0
  75. data/doc/images/page_green.png +0 -0
  76. data/doc/images/page_white_text.png +0 -0
  77. data/doc/images/page_white_width.png +0 -0
  78. data/doc/images/plugin.png +0 -0
  79. data/doc/images/ruby.png +0 -0
  80. data/doc/images/tag_green.png +0 -0
  81. data/doc/images/wrench.png +0 -0
  82. data/doc/images/wrench_orange.png +0 -0
  83. data/doc/images/zoom.png +0 -0
  84. data/doc/index.html +0 -342
  85. data/doc/js/darkfish.js +0 -116
  86. data/doc/js/jquery.js +0 -32
  87. data/doc/js/quicksearch.js +0 -114
  88. data/doc/js/thickbox-compressed.js +0 -10
  89. data/doc/lib/caricature/clr/aspnet_mvc_rb.html +0 -52
  90. data/doc/lib/caricature/clr/descriptor_rb.html +0 -52
  91. data/doc/lib/caricature/clr/isolation_rb.html +0 -52
  92. data/doc/lib/caricature/clr/isolator_rb.html +0 -52
  93. data/doc/lib/caricature/clr/messenger_rb.html +0 -52
  94. data/doc/lib/caricature/clr_rb.html +0 -52
  95. data/doc/lib/caricature/descriptor_rb.html +0 -52
  96. data/doc/lib/caricature/expectation_rb.html +0 -52
  97. data/doc/lib/caricature/isolation_rb.html +0 -52
  98. data/doc/lib/caricature/isolator_rb.html +0 -52
  99. data/doc/lib/caricature/messaging_rb.html +0 -52
  100. data/doc/lib/caricature/messenger_rb.html +0 -52
  101. data/doc/lib/caricature/method_call_recorder_rb.html +0 -52
  102. data/doc/lib/caricature/verification_rb.html +0 -52
  103. data/doc/lib/caricature_rb.html +0 -52
  104. data/doc/lib/core_ext/array_rb.html +0 -52
  105. data/doc/lib/core_ext/class_rb.html +0 -52
  106. data/doc/lib/core_ext/core_ext_rb.html +0 -52
  107. data/doc/lib/core_ext/hash_rb.html +0 -52
  108. data/doc/lib/core_ext/module_rb.html +0 -52
  109. data/doc/lib/core_ext/object_rb.html +0 -52
  110. data/doc/lib/core_ext/string_rb.html +0 -52
  111. data/doc/lib/core_ext/system/string_rb.html +0 -52
  112. data/doc/lib/core_ext/system/type_rb.html +0 -52
  113. data/doc/rdoc.css +0 -696
  114. data/irb_init.rb +0 -9
  115. data/lib/bin/Workarounds.dll +0 -0
  116. data/lib/bin/Workarounds.pdb +0 -0
  117. data/pkg/.gitignore +0 -0
  118. data/pkg/caricature-0.1.0.gem +0 -0
  119. data/pkg/caricature-0.5.0.gem +0 -0
  120. data/pkg/caricature-0.6.0.gem +0 -0
  121. data/spec/bin/.gitignore +0 -0
  122. data/workarounds/ReflectionHelper.cs +0 -30
@@ -1,416 +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::RubyIsolator</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/isolator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
32
- class="thickbox" title="lib/caricature/isolator.rb">lib/caricature/isolator.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">Isolator</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="#M000083">::new</a></li>
63
-
64
- <li><a href="#M000088">#___super___</a></li>
65
-
66
- <li><a href="#M000086">#create_isolation_for</a></li>
67
-
68
- <li><a href="#M000085">#initialize_messenger</a></li>
69
-
70
- </ul>
71
- </div>
72
-
73
-
74
- <!-- Included Modules -->
75
-
76
- <div id="includes-section" class="section">
77
- <h3 class="section-header">Included Modules</h3>
78
- <ul class="link-list">
79
-
80
-
81
- <li><a class="include" href="Interception.html">Caricature::Interception</a></li>
82
-
83
-
84
- </ul>
85
- </div>
86
-
87
- </div>
88
-
89
- <div id="project-metadata">
90
-
91
-
92
- <div id="fileindex-section" class="section project-section">
93
- <h3 class="section-header">Files</h3>
94
- <ul>
95
-
96
- <li class="file"><a href="../README_markdown.html">README.markdown</a></li>
97
-
98
- </ul>
99
- </div>
100
-
101
-
102
- <div id="classindex-section" class="section project-section">
103
- <h3 class="section-header">Class Index
104
- <span class="search-toggle"><img src="../images/find.png"
105
- height="16" width="16" alt="[+]"
106
- title="show/hide quicksearch" /></span></h3>
107
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
108
- <fieldset>
109
- <legend>Quicksearch</legend>
110
- <input type="text" name="quicksearch" value=""
111
- class="quicksearch-field" />
112
- </fieldset>
113
- </form>
114
-
115
- <ul class="link-list">
116
-
117
- <li><a href="../Caricature.html">Caricature</a></li>
118
-
119
- <li><a href="../Caricature/ArgumentRecording.html">Caricature::ArgumentRecording</a></li>
120
-
121
- <li><a href="../Caricature/ClrClassDescriptor.html">Caricature::ClrClassDescriptor</a></li>
122
-
123
- <li><a href="../Caricature/ClrClassMessenger.html">Caricature::ClrClassMessenger</a></li>
124
-
125
- <li><a href="../Caricature/ClrInterfaceDescriptor.html">Caricature::ClrInterfaceDescriptor</a></li>
126
-
127
- <li><a href="../Caricature/ClrInterfaceIsolator.html">Caricature::ClrInterfaceIsolator</a></li>
128
-
129
- <li><a href="../Caricature/ClrInterfaceMessenger.html">Caricature::ClrInterfaceMessenger</a></li>
130
-
131
- <li><a href="../Caricature/ClrIsolator.html">Caricature::ClrIsolator</a></li>
132
-
133
- <li><a href="../Caricature/Expectation.html">Caricature::Expectation</a></li>
134
-
135
- <li><a href="../Caricature/ExpectationBuilder.html">Caricature::ExpectationBuilder</a></li>
136
-
137
- <li><a href="../Caricature/ExpectationSyntax.html">Caricature::ExpectationSyntax</a></li>
138
-
139
- <li><a href="../Caricature/Expectations.html">Caricature::Expectations</a></li>
140
-
141
- <li><a href="../Caricature/Interception.html">Caricature::Interception</a></li>
142
-
143
- <li><a href="../Caricature/Interception/ClassMethods.html">Caricature::Interception::ClassMethods</a></li>
144
-
145
- <li><a href="../Caricature/Isolation.html">Caricature::Isolation</a></li>
146
-
147
- <li><a href="../Caricature/Isolator.html">Caricature::Isolator</a></li>
148
-
149
- <li><a href="../Caricature/MemberDescriptor.html">Caricature::MemberDescriptor</a></li>
150
-
151
- <li><a href="../Caricature/Messenger.html">Caricature::Messenger</a></li>
152
-
153
- <li><a href="../Caricature/MethodCallRecorder.html">Caricature::MethodCallRecorder</a></li>
154
-
155
- <li><a href="../Caricature/MethodCallRecording.html">Caricature::MethodCallRecording</a></li>
156
-
157
- <li><a href="../Caricature/RubyIsolator.html">Caricature::RubyIsolator</a></li>
158
-
159
- <li><a href="../Caricature/RubyMessenger.html">Caricature::RubyMessenger</a></li>
160
-
161
- <li><a href="../Caricature/RubyObjectDescriptor.html">Caricature::RubyObjectDescriptor</a></li>
162
-
163
- <li><a href="../Caricature/TypeDescriptor.html">Caricature::TypeDescriptor</a></li>
164
-
165
- <li><a href="../Caricature/Verification.html">Caricature::Verification</a></li>
166
-
167
- <li><a href="../System.html">System</a></li>
168
-
169
- <li><a href="../System/String.html">System::String</a></li>
170
-
171
- <li><a href="../System/Type.html">System::Type</a></li>
172
-
173
- <li><a href="../Array.html">Array</a></li>
174
-
175
- <li><a href="../Class.html">Class</a></li>
176
-
177
- <li><a href="../Hash.html">Hash</a></li>
178
-
179
- <li><a href="../Module.html">Module</a></li>
180
-
181
- <li><a href="../Object.html">Object</a></li>
182
-
183
- <li><a href="../String.html">String</a></li>
184
-
185
- </ul>
186
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
187
- </div>
188
-
189
-
190
- </div>
191
- </div>
192
-
193
- <div id="documentation">
194
- <h1 class="class">Caricature::RubyIsolator</h1>
195
-
196
- <div id="description">
197
- <p>
198
- A proxy to Ruby objects that records method calls this implements all the
199
- instance methods that are defined on the class.
200
- </p>
201
-
202
- </div>
203
-
204
- <!-- Constants -->
205
-
206
-
207
- <!-- Attributes -->
208
-
209
-
210
- <!-- Methods -->
211
-
212
- <div id="public-class-method-details" class="method-section section">
213
- <h3 class="section-header">Public Class Methods</h3>
214
-
215
-
216
- <div id="new-method" class="method-detail ">
217
- <a name="M000083"></a>
218
-
219
- <div class="method-heading">
220
-
221
- <span class="method-name">new</span><span
222
- class="method-args">(context)</span>
223
- <span class="method-click-advice">click to toggle source</span>
224
-
225
- </div>
226
-
227
- <div class="method-description">
228
-
229
- <p>
230
- implemented template method for creating Ruby isolations
231
- </p>
232
-
233
-
234
-
235
- <div class="method-source-code"
236
- id="new-source">
237
- <pre>
238
- <span class="ruby-comment cmt"># File lib/caricature/isolator.rb, line 232</span>
239
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">context</span>)
240
- <span class="ruby-keyword kw">super</span>
241
- <span class="ruby-identifier">klass</span> = <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">subject</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:class_eval</span>) <span class="ruby-operator">?</span> <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">subject</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">subject</span>.<span class="ruby-identifier">class</span>
242
- <span class="ruby-identifier">inst</span> = <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">subject</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:class_eval</span>) <span class="ruby-operator">?</span> <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">subject</span>.<span class="ruby-identifier">new</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">subject</span>
243
- <span class="ruby-ivar">@descriptor</span> = <span class="ruby-constant">RubyObjectDescriptor</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">klass</span>
244
- <span class="ruby-identifier">build_isolation</span> <span class="ruby-identifier">klass</span>, <span class="ruby-identifier">inst</span>
245
- <span class="ruby-keyword kw">end</span></pre>
246
- </div>
247
-
248
- </div>
249
-
250
-
251
- </div>
252
-
253
-
254
- </div>
255
-
256
- <div id="public-instance-method-details" class="method-section section">
257
- <h3 class="section-header">Public Instance Methods</h3>
258
-
259
-
260
- <div id="-super--method" class="method-detail ">
261
- <a name="M000088"></a>
262
-
263
- <div class="method-heading">
264
-
265
- <span class="method-name">___super___</span><span
266
- class="method-args">()</span>
267
- <span class="method-click-advice">click to toggle source</span>
268
-
269
- </div>
270
-
271
- <div class="method-description">
272
-
273
- <p>
274
- access to the proxied subject
275
- </p>
276
-
277
-
278
-
279
- <div class="method-source-code"
280
- id="-super--source">
281
- <pre>
282
- <span class="ruby-comment cmt"># File lib/caricature/isolator.rb, line 256</span>
283
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">___super___</span>
284
- <span class="ruby-identifier">isolation_context</span>.<span class="ruby-identifier">instance</span>
285
- <span class="ruby-keyword kw">end</span></pre>
286
- </div>
287
-
288
- </div>
289
-
290
-
291
- </div>
292
-
293
-
294
- <div id="create-isolation-for-method" class="method-detail ">
295
- <a name="M000086"></a>
296
-
297
- <div class="method-heading">
298
-
299
- <span class="method-name">create_isolation_for</span><span
300
- class="method-args">(subj)</span>
301
- <span class="method-click-advice">click to toggle source</span>
302
-
303
- </div>
304
-
305
- <div class="method-description">
306
-
307
- <p>
308
- creates the ruby isolator for the specified subject
309
- </p>
310
-
311
-
312
-
313
- <div class="method-source-code"
314
- id="create-isolation-for-source">
315
- <pre>
316
- <span class="ruby-comment cmt"># File lib/caricature/isolator.rb, line 246</span>
317
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_isolation_for</span>(<span class="ruby-identifier">subj</span>)
318
- <span class="ruby-identifier">imembers</span> = <span class="ruby-ivar">@descriptor</span>.<span class="ruby-identifier">instance_members</span>
319
- <span class="ruby-identifier">cmembers</span> = <span class="ruby-ivar">@descriptor</span>.<span class="ruby-identifier">class_members</span>
320
-
321
- <span class="ruby-identifier">klass</span> = <span class="ruby-constant">Object</span>.<span class="ruby-identifier">const_set</span>(<span class="ruby-identifier">class_name</span>(<span class="ruby-identifier">subj</span>), <span class="ruby-constant">Class</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">subj</span>))
322
- <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
323
-
324
- <span class="ruby-identifier">include</span> <span class="ruby-constant">Interception</span>
325
-
326
- <span class="ruby-comment cmt"># access to the proxied subject</span>
327
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">___super___</span>
328
- <span class="ruby-identifier">isolation_context</span>.<span class="ruby-identifier">instance</span>
329
- <span class="ruby-keyword kw">end</span>
330
-
331
- <span class="ruby-identifier">imembers</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">mn</span><span class="ruby-operator">|</span>
332
- <span class="ruby-identifier">mn</span> = <span class="ruby-identifier">mn</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_sym</span>
333
- <span class="ruby-identifier">define_method</span> <span class="ruby-identifier">mn</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
334
- <span class="ruby-identifier">b</span> = <span class="ruby-keyword kw">nil</span>
335
- <span class="ruby-identifier">b</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> { <span class="ruby-keyword kw">yield</span> } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
336
- <span class="ruby-identifier">isolation_context</span>.<span class="ruby-identifier">send_message</span>(<span class="ruby-identifier">mn</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">b</span>)
337
- <span class="ruby-keyword kw">end</span>
338
- <span class="ruby-keyword kw">end</span>
339
-
340
- <span class="ruby-identifier">cmembers</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">mn</span><span class="ruby-operator">|</span>
341
- <span class="ruby-identifier">mn</span> = <span class="ruby-identifier">mn</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_sym</span>
342
- <span class="ruby-identifier">define_cmethod</span> <span class="ruby-identifier">mn</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
343
- <span class="ruby-identifier">b</span> = <span class="ruby-keyword kw">nil</span>
344
- <span class="ruby-identifier">b</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> { <span class="ruby-keyword kw">yield</span> } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
345
- <span class="ruby-identifier">isolation_context</span>.<span class="ruby-identifier">send_class_message</span>(<span class="ruby-identifier">mn</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">b</span>)
346
- <span class="ruby-keyword kw">end</span>
347
- <span class="ruby-keyword kw">end</span>
348
-
349
-
350
- <span class="ruby-keyword kw">end</span>
351
-
352
- <span class="ruby-identifier">klass</span>
353
- <span class="ruby-keyword kw">end</span></pre>
354
- </div>
355
-
356
- </div>
357
-
358
-
359
- </div>
360
-
361
-
362
- <div id="initialize-messenger-method" class="method-detail ">
363
- <a name="M000085"></a>
364
-
365
- <div class="method-heading">
366
-
367
- <span class="method-name">initialize_messenger</span><span
368
- class="method-args">()</span>
369
- <span class="method-click-advice">click to toggle source</span>
370
-
371
- </div>
372
-
373
- <div class="method-description">
374
-
375
- <p>
376
- initializes the messaging strategy for the isolator
377
- </p>
378
-
379
-
380
-
381
- <div class="method-source-code"
382
- id="initialize-messenger-source">
383
- <pre>
384
- <span class="ruby-comment cmt"># File lib/caricature/isolator.rb, line 241</span>
385
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_messenger</span>
386
- <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">messenger</span> = <span class="ruby-constant">RubyMessenger</span>.<span class="ruby-identifier">new</span> <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">expectations</span>, <span class="ruby-ivar">@subject</span>
387
- <span class="ruby-keyword kw">end</span></pre>
388
- </div>
389
-
390
- </div>
391
-
392
-
393
- </div>
394
-
395
-
396
- </div>
397
-
398
-
399
- </div>
400
-
401
-
402
- <div id="rdoc-debugging-section-dump" class="debugging-section">
403
-
404
- <p>Disabled; run with --debug to generate this.</p>
405
-
406
- </div>
407
-
408
- <div id="validator-badges">
409
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
410
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
411
- Rdoc Generator</a> 1.1.6</small>.</p>
412
- </div>
413
-
414
- </body>
415
- </html>
416
-