Sha256: c4447302d3b1efbf9a2d4aa4c2b4bfe39736461a184a08846562542122fb2380

Contents?: true

Size: 1.85 KB

Versions: 2

Compression:

Stored size: 1.85 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>notify (RFuzz::HttpClient)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre>     <span class="ruby-comment cmt"># File lib/rfuzz/client.rb, line 451</span>
451:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">notify</span>(<span class="ruby-identifier">event</span>)
452:       <span class="ruby-ivar">@notifier</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">event</span>, <span class="ruby-identifier">:begins</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@notifier</span>
453: 
454:       <span class="ruby-keyword kw">begin</span>
455:         <span class="ruby-keyword kw">yield</span>
456:         <span class="ruby-ivar">@notifier</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">event</span>, <span class="ruby-identifier">:ends</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@notifier</span>
457:       <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Object</span>
458:         <span class="ruby-ivar">@notifier</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">event</span>, <span class="ruby-identifier">:error</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@notifier</span>
459:         <span class="ruby-identifier">raise</span> <span class="ruby-identifier">$!</span>
460:       <span class="ruby-keyword kw">end</span>
461:     <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rfuzz-0.8 doc/rdoc/classes/RFuzz/HttpClient.src/M000030.html
rfuzz-0.9 doc/rdoc/classes/RFuzz/HttpClient.src/M000031.html