doc/Caricature/Messenger.html in caricature-0.5.0 vs doc/Caricature/Messenger.html in caricature-0.6.0

- old
+ new

@@ -26,12 +26,12 @@ <div id="file-list-section" class="section"> <h3 class="section-header">In Files</h3> <div class="section-body"> <ul> - <li><a href="../lib/caricature/messaging_rb.html?TB_iframe=true&amp;height=550&amp;width=785" - class="thickbox" title="lib/caricature/messaging.rb">lib/caricature/messaging.rb</a></li> + <li><a href="../lib/caricature/messenger_rb.html?TB_iframe=true&amp;height=550&amp;width=785" + class="thickbox" title="lib/caricature/messenger.rb">lib/caricature/messenger.rb</a></li> </ul> </div> </div> @@ -57,14 +57,18 @@ <div id="method-list-section" class="section"> <h3 class="section-header">Methods</h3> <ul class="link-list"> - <li><a href="#M000048">::new</a></li> + <li><a href="#M000055">::new</a></li> - <li><a href="#M000050">#deliver</a></li> + <li><a href="#M000056">#deliver</a></li> + <li><a href="#M000058">#deliver_to_class</a></li> + + <li><a href="#M000059">#internal_deliver</a></li> + </ul> </div> <!-- Included Modules --> @@ -237,11 +241,11 @@ <div id="public-class-method-details" class="method-section section"> <h3 class="section-header">Public Class Methods</h3> <div id="new-method" class="method-detail "> - <a name="M000048"></a> + <a name="M000055"></a> <div class="method-heading"> <span class="method-name">new</span><span class="method-args">(expectations, instance=nil)</span> @@ -258,11 +262,11 @@ <div class="method-source-code" id="new-source"> <pre> -<span class="ruby-comment cmt"># File lib/caricature/messaging.rb, line 14</span> +<span class="ruby-comment cmt"># File lib/caricature/messenger.rb, line 14</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">expectations</span>, <span class="ruby-identifier">instance</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-ivar">@instance</span>, <span class="ruby-ivar">@expectations</span> = <span class="ruby-identifier">instance</span>, <span class="ruby-identifier">expectations</span> <span class="ruby-keyword kw">end</span></pre> </div> @@ -277,11 +281,11 @@ <div id="public-instance-method-details" class="method-section section"> <h3 class="section-header">Public Instance Methods</h3> <div id="deliver-method" class="method-detail "> - <a name="M000050"></a> + <a name="M000056"></a> <div class="method-heading"> <span class="method-name">deliver</span><span class="method-args">(method_name, return_type, *args, &b)</span> @@ -298,13 +302,87 @@ <div class="method-source-code" id="deliver-source"> <pre> -<span class="ruby-comment cmt"># File lib/caricature/messaging.rb, line 19</span> +<span class="ruby-comment cmt"># File lib/caricature/messenger.rb, line 19</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deliver</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">&amp;</span><span class="ruby-identifier">b</span>) - <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span> + <span class="ruby-identifier">internal_deliver</span>(<span class="ruby-identifier">:instance</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">&amp;</span><span class="ruby-identifier">b</span>) <span class="ruby-keyword kw">end</span></pre> + </div> + + </div> + + + </div> + + + <div id="deliver-to-class-method" class="method-detail "> + <a name="M000058"></a> + + <div class="method-heading"> + + <span class="method-name">deliver_to_class</span><span + class="method-args">(method_name, return_type, *args, &b)</span> + <span class="method-click-advice">click to toggle source</span> + + </div> + + <div class="method-description"> + + <p> +deliver the message to class of the receiving isolation +</p> + + + + <div class="method-source-code" + id="deliver-to-class-source"> +<pre> +<span class="ruby-comment cmt"># File lib/caricature/messenger.rb, line 24</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deliver_to_class</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">&amp;</span><span class="ruby-identifier">b</span>) + <span class="ruby-identifier">internal_deliver</span>(<span class="ruby-identifier">:class</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">&amp;</span><span class="ruby-identifier">b</span>) + <span class="ruby-keyword kw">end</span></pre> + </div> + + </div> + + + </div> + + + </div> + + <div id="protected-instance-method-details" class="method-section section"> + <h3 class="section-header">Protected Instance Methods</h3> + + + <div id="internal-deliver-method" class="method-detail "> + <a name="M000059"></a> + + <div class="method-heading"> + + <span class="method-name">internal_deliver</span><span + class="method-args">(mode, method_name, return_type, *args, &b)</span> + <span class="method-click-advice">click to toggle source</span> + + </div> + + <div class="method-description"> + + <p> +template method for looking up the expectation and/or returning a value +</p> + + + + <div class="method-source-code" + id="internal-deliver-source"> +<pre> +<span class="ruby-comment cmt"># File lib/caricature/messenger.rb, line 31</span> + <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">&amp;</span><span class="ruby-identifier">b</span>) + <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Override in an implementing class&quot;</span>) + <span class="ruby-keyword kw">end</span></pre> </div> </div>