doc/Safubot/Evented.html in safubot-0.0.1 vs doc/Safubot/Evented.html in safubot-0.0.2
- old
+ new
@@ -1,346 +1,479 @@
-<!DOCTYPE html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+ Module: Safubot::Evented
+
+ — Documentation by YARD 0.7.3
+
+</title>
-<html>
-<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
-<title>Module: Safubot::Evented</title>
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
-<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
-
-<script type="text/javascript">
- var rdoc_rel_prefix = "../";
+<script type="text/javascript" charset="utf-8">
+ relpath = '..';
+ if (relpath != '') relpath += '/';
</script>
-<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
-<body id="top" class="module">
-<nav id="metadata">
- <nav id="home-section" class="section">
- <h3 class="section-header">
- <a href="../index.html">Home</a>
- <a href="../table_of_contents.html#classes">Classes</a>
- <a href="../table_of_contents.html#methods">Methods</a>
- </h3>
-</nav>
+ </head>
+ <body>
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header">
+ <div id="menu">
+
+ <a href="../_index.html">Index (E)</a> »
+ <span class='title'><span class='object_link'><a href="../Safubot.html" title="Safubot (module)">Safubot</a></span></span>
+ »
+ <span class="title">Evented</span>
+
+
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
+</div>
- <nav id="search-section" class="section project-section" class="initially-hidden">
- <form action="#" method="get" accept-charset="utf-8">
- <h3 class="section-header">
- <input type="text" name="search" placeholder="Search" id="search-field"
- title="Type to search, Up and Down to navigate, Enter to load">
- </h3>
- </form>
+ <div id="search">
+
+ <a id="class_list_link" href="#">Class List</a>
+
+ <a id="method_list_link" href="#">Method List</a>
+
+ <a id="file_list_link" href="#">File List</a>
+
+</div>
+ <div class="clear"></div>
+ </div>
+
+ <iframe id="search_frame"></iframe>
+
+ <div id="content"><h1>Module: Safubot::Evented
+
+
+
+</h1>
- <ul id="search-results" class="initially-hidden"></ul>
-</nav>
+<dl class="box">
+
+
+
+
+
+
+
+ <dt class="r1">Included in:</dt>
+ <dd class="r1"><span class='object_link'><a href="Bot.html" title="Safubot::Bot (class)">Bot</a></span>, <span class='object_link'><a href="Twitter/Bot.html" title="Safubot::Twitter::Bot (class)">Twitter::Bot</a></span>, <span class='object_link'><a href="XMPP/Bot.html" title="Safubot::XMPP::Bot (class)">XMPP::Bot</a></span></dd>
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">lib/safubot/evented.rb</dd>
+
+</dl>
+<div class="clear"></div>
+<h2>Overview</h2><div class="docstring">
+ <div class="discussion">
+ <p>
+A mixin granting simple event firing and handler binding.
+</p>
- <div id="file-metadata">
- <nav id="file-list-section" class="section">
- <h3 class="section-header">Defined In</h3>
- <ul>
- <li>lib/safubot/evented.rb
- </ul>
-</nav>
-
</div>
+</div>
+<div class="tags">
+
- <div id="class-metadata">
+</div>
+
+
+
+
+
+ <h2>
+ Instance Method Summary
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+ </h2>
+
+ <ul class="summary">
+
+ <li class="public ">
+ <span class="summary_signature">
+ <a href="#bind-instance_method" title="#bind (instance method)">- (Object) <strong>bind</strong>(evid, handler) </a>
+
- <!-- Method Quickref -->
-<nav id="method-list-section" class="section">
- <h3 class="section-header">Methods</h3>
+ </span>
+
+
+
+
+
+
- <ul class="link-list">
+
+ <span class="summary_desc"><div class='inline'><p>
+Binds an event handler, which is a Hash of the form:.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
- <li><a href="#method-i-bind">#bind</a>
+ <a href="#emit-instance_method" title="#emit (instance method)">- (Object) <strong>emit</strong>(evid, *args) </a>
- <li><a href="#method-i-emit">#emit</a>
+
- <li><a href="#method-i-on">#on</a>
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Fires an evid event with the given arguments.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
- <li><a href="#method-i-once">#once</a>
+ <a href="#on-instance_method" title="#on (instance method)">- (Object) <strong>on</strong>(evid, opts = {}, &callback) </a>
- <li><a href="#method-i-unbind">#unbind</a>
-
- </ul>
-</nav>
- </div>
-
- <div id="project-metadata">
- <nav id="fileindex-section" class="section project-section">
- <h3 class="section-header">Pages</h3>
-
- <ul>
+
+ </span>
- <li class="file"><a href="../Gemfile.html">Gemfile</a>
- <li class="file"><a href="../Rakefile.html">Rakefile</a>
- </ul>
-</nav>
+
+
+
- <nav id="classindex-section" class="section project-section">
- <h3 class="section-header">Class and Module Index</h3>
-
- <ul class="link-list">
- <li><a href="../Safubot.html">Safubot</a>
+ <span class="summary_desc"><div class='inline'><p>
+Binds a block to the specified event id.
+</p>
+</div></span>
- <li><a href="../Safubot/Bot.html">Safubot::Bot</a>
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#once-instance_method" title="#once (instance method)">- (Object) <strong>once</strong>(evid, opts = {}, &callback) </a>
+
+
+
+ </span>
- <li><a href="../Safubot/Evented.html">Safubot::Evented</a>
- <li><a href="../Safubot/KnownUser.html">Safubot::KnownUser</a>
- <li><a href="../Safubot/Log.html">Safubot::Log</a>
- <li><a href="../Safubot/Query.html">Safubot::Query</a>
- <li><a href="../Safubot/Request.html">Safubot::Request</a>
- <li><a href="../Safubot/Response.html">Safubot::Response</a>
+
- <li><a href="../Safubot/Test.html">Safubot::Test</a>
+ <span class="summary_desc"><div class='inline'><p>
+Binds a block to the specified event id, to be executed only once.
+</p>
+</div></span>
- <li><a href="../Safubot/Twitter.html">Safubot::Twitter</a>
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#unbind-instance_method" title="#unbind (instance method)">- (Object) <strong>unbind</strong>(handler) </a>
+
+
+
+ </span>
- <li><a href="../Safubot/Twitter/Bot.html">Safubot::Twitter::Bot</a>
- <li><a href="../Safubot/Twitter/DirectMessage.html">Safubot::Twitter::DirectMessage</a>
- <li><a href="../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
- <li><a href="../Safubot/XMPP.html">Safubot::XMPP</a>
- <li><a href="../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
- <li><a href="../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
+
- <li><a href="../Object.html">Object</a>
+ <span class="summary_desc"><div class='inline'><p>
+Unbinds the given handler.
+</p>
+</div></span>
- </ul>
-</nav>
+</li>
- </div>
-</nav>
+
+ </ul>
+
-<div id="documentation">
- <h1 class="module">module Safubot::Evented</h1>
- <div id="description" class="description">
-
-<p>A mixin granting simple event firing and handler binding.</p>
- </div><!-- description -->
-
+ <div id="instance_method_details" class="method_details_list">
+ <h2>Instance Method Details</h2>
+
+
+ <div class="method_details first">
+ <p class="signature first" id="bind-instance_method">
+ - (<tt>Object</tt>) <strong>bind</strong>(evid, handler)
+
- <section id="5Buntitled-5D" class="documentation-section">
-
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Binds an event handler, which is a Hash of the form:
+</p>
+<p>
+ { :evid => Symbol, :id => Symbol, :repeat => Boolean, :proc => Proc }
+</p>
+<p>
+See on[rdoc-ref:Safubot::Evented#on] and
+once[rdoc-ref:Safubot::Evented#once] for sugar.
+</p>
-
-
+ </div>
+</div>
+<div class="tags">
+
-
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
- <!-- Methods -->
-
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
- <h3 class="section-header">Public Instance Methods</h3>
+11
+12
+13
+14
+15
+16
+17</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/safubot/evented.rb', line 11</span>
+
+<span class='kw'>def</span> <span class='id bind'>bind</span><span class='lparen'>(</span><span class='id evid'>evid</span><span class='comma'>,</span> <span class='id handler'>handler</span><span class='rparen'>)</span>
+ <span class='ivar'>@handlers</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
+ <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id evid'>evid</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
+ <span class='id handler'>handler</span><span class='lbracket'>[</span><span class='symbol'>:evid</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id evid'>evid</span>
+ <span class='id handler'>handler</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id evid'>evid</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id length'>length</span>
+ <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id evid'>evid</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id handler'>handler</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id handler'>handler</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
- <div id="method-i-bind" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">bind</span><span
- class="method-args">(evid, handler)</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
+ <div class="method_details ">
+ <p class="signature " id="emit-instance_method">
+
+ - (<tt>Object</tt>) <strong>emit</strong>(evid, *args)
+
- <div class="method-description">
-
- <p>Binds an event handler, which is a Hash of the form:</p>
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Fires an evid event with the given arguments.
+</p>
-<pre class="ruby">{ :<span class="ruby-identifier">evid</span> =<span class="ruby-operator">></span> <span class="ruby-constant">Symbol</span>, :<span class="ruby-identifier">id</span> =<span class="ruby-operator">></span> <span class="ruby-constant">Symbol</span>, :<span class="ruby-identifier">repeat</span> =<span class="ruby-operator">></span> <span class="ruby-constant">Boolean</span>, :<span class="ruby-identifier">proc</span> =<span class="ruby-operator">></span> <span class="ruby-constant">Proc</span> }
-</pre>
-<p>See on and once for sugar.</p>
-
+ </div>
+</div>
+<div class="tags">
+
-
- <div class="method-source-code" id="bind-source">
- <pre><span class="ruby-comment"># File lib/safubot/evented.rb, line 10</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">bind</span>(<span class="ruby-identifier">evid</span>, <span class="ruby-identifier">handler</span>)
- <span class="ruby-ivar">@handlers</span> <span class="ruby-operator">||=</span> {}
- <span class="ruby-ivar">@handlers</span>[<span class="ruby-identifier">evid</span>] <span class="ruby-operator">||=</span> {}
- <span class="ruby-identifier">handler</span>[<span class="ruby-value">:evid</span>] = <span class="ruby-identifier">evid</span>
- <span class="ruby-identifier">handler</span>[<span class="ruby-value">:id</span>] <span class="ruby-operator">||=</span> <span class="ruby-ivar">@handlers</span>[<span class="ruby-identifier">evid</span>].<span class="ruby-identifier">length</span>
- <span class="ruby-ivar">@handlers</span>[<span class="ruby-identifier">evid</span>][<span class="ruby-identifier">handler</span>[<span class="ruby-value">:id</span>]] = <span class="ruby-identifier">handler</span>
-<span class="ruby-keyword">end</span></pre>
- </div><!-- bind-source -->
-
- </div>
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
-
-
- </div><!-- bind-method -->
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/safubot/evented.rb', line 41</span>
+<span class='kw'>def</span> <span class='id emit'>emit</span><span class='lparen'>(</span><span class='id evid'>evid</span><span class='comma'>,</span> <span class='op'>*</span><span class='id args'>args</span><span class='rparen'>)</span>
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='ivar'>@handlers</span> <span class='op'>&&</span> <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id evid'>evid</span><span class='rbracket'>]</span>
+ <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id evid'>evid</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id id'>id</span><span class='comma'>,</span> <span class='id handler'>handler</span><span class='op'>|</span>
+ <span class='kw'>begin</span>
+ <span class='id handler'>handler</span><span class='lbracket'>[</span><span class='symbol'>:proc</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id args'>args</span><span class='rparen'>)</span>
+ <span class='kw'>ensure</span>
+ <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id evid'>evid</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id delete'>delete</span><span class='lparen'>(</span><span class='id id'>id</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id handler'>handler</span><span class='lbracket'>[</span><span class='symbol'>:repeat</span><span class='rbracket'>]</span>
+ <span class='kw'>end</span>
+ <span class='kw'>end</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
- <div id="method-i-emit" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">emit</span><span
- class="method-args">(evid, *args)</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
+ <div class="method_details ">
+ <p class="signature " id="on-instance_method">
+
+ - (<tt>Object</tt>) <strong>on</strong>(evid, opts = {}, &callback)
+
- <div class="method-description">
-
- <p>Fires an evid event with the given arguments.</p>
-
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Binds a block to the specified event id. Returns the bound handler.
+</p>
-
- <div class="method-source-code" id="emit-source">
- <pre><span class="ruby-comment"># File lib/safubot/evented.rb, line 36</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">emit</span>(<span class="ruby-identifier">evid</span>, *<span class="ruby-identifier">args</span>)
- <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@handlers</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@handlers</span>[<span class="ruby-identifier">evid</span>]
- <span class="ruby-ivar">@handlers</span>[<span class="ruby-identifier">evid</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">id</span>, <span class="ruby-identifier">handler</span><span class="ruby-operator">|</span>
- <span class="ruby-keyword">begin</span>
- <span class="ruby-identifier">handler</span>[<span class="ruby-value">:proc</span>].<span class="ruby-identifier">call</span>(*<span class="ruby-identifier">args</span>)
- <span class="ruby-keyword">ensure</span>
- <span class="ruby-ivar">@handlers</span>[<span class="ruby-identifier">evid</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">id</span>) <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">handler</span>[<span class="ruby-value">:repeat</span>]
- <span class="ruby-keyword">end</span>
- <span class="ruby-keyword">end</span>
-<span class="ruby-keyword">end</span></pre>
- </div><!-- emit-source -->
-
- </div>
-
+ </div>
+</div>
+<div class="tags">
+
-
- </div><!-- emit-method -->
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
-
- <div id="method-i-on" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">on</span><span
- class="method-args">(evid, opts={}, &callback)</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
- <div class="method-description">
-
- <p>Binds a block to the specified event id. Returns the bound handler.</p>
-
+28
+29
+30</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/safubot/evented.rb', line 28</span>
-
- <div class="method-source-code" id="on-source">
- <pre><span class="ruby-comment"># File lib/safubot/evented.rb, line 25</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">on</span>(<span class="ruby-identifier">evid</span>, <span class="ruby-identifier">opts</span>={}, &<span class="ruby-identifier">callback</span>)
- <span class="ruby-identifier">bind</span>(<span class="ruby-identifier">evid</span>, { <span class="ruby-value">:repeat</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>, <span class="ruby-value">:proc</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">callback</span> }.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>))
-<span class="ruby-keyword">end</span></pre>
- </div><!-- on-source -->
-
- </div>
+<span class='kw'>def</span> <span class='id on'>on</span><span class='lparen'>(</span><span class='id evid'>evid</span><span class='comma'>,</span> <span class='id opts'>opts</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id callback'>callback</span><span class='rparen'>)</span>
+ <span class='id bind'>bind</span><span class='lparen'>(</span><span class='id evid'>evid</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='symbol'>:repeat</span> <span class='op'>=></span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:proc</span> <span class='op'>=></span> <span class='id callback'>callback</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id merge'>merge</span><span class='lparen'>(</span><span class='id opts'>opts</span><span class='rparen'>)</span><span class='rparen'>)</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="once-instance_method">
+
+ - (<tt>Object</tt>) <strong>once</strong>(evid, opts = {}, &callback)
+
-
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Binds a block to the specified event id, to be executed only once. Returns
+the bound handler.
+</p>
-
- </div><!-- on-method -->
-
- <div id="method-i-once" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">once</span><span
- class="method-args">(evid, opts={}, &callback)</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
+ </div>
+</div>
+<div class="tags">
+
- <div class="method-description">
-
- <p>Binds a block to the specified event id, to be executed only once. Returns
-the bound handler.</p>
-
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
-
- <div class="method-source-code" id="once-source">
- <pre><span class="ruby-comment"># File lib/safubot/evented.rb, line 31</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">once</span>(<span class="ruby-identifier">evid</span>, <span class="ruby-identifier">opts</span>={}, &<span class="ruby-identifier">callback</span>)
- <span class="ruby-identifier">bind</span>(<span class="ruby-identifier">evid</span>, { <span class="ruby-value">:repeat</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span>, <span class="ruby-value">:proc</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">callback</span> }.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>))
-<span class="ruby-keyword">end</span></pre>
- </div><!-- once-source -->
-
- </div>
-
+35
+36
+37</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/safubot/evented.rb', line 35</span>
-
- </div><!-- once-method -->
-
+<span class='kw'>def</span> <span class='id once'>once</span><span class='lparen'>(</span><span class='id evid'>evid</span><span class='comma'>,</span> <span class='id opts'>opts</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id callback'>callback</span><span class='rparen'>)</span>
+ <span class='id bind'>bind</span><span class='lparen'>(</span><span class='id evid'>evid</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='symbol'>:repeat</span> <span class='op'>=></span> <span class='kw'>false</span><span class='comma'>,</span> <span class='symbol'>:proc</span> <span class='op'>=></span> <span class='id callback'>callback</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id merge'>merge</span><span class='lparen'>(</span><span class='id opts'>opts</span><span class='rparen'>)</span><span class='rparen'>)</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
- <div id="method-i-unbind" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">unbind</span><span
- class="method-args">(handler)</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
+ <div class="method_details ">
+ <p class="signature " id="unbind-instance_method">
+
+ - (<tt>Object</tt>) <strong>unbind</strong>(handler)
+
- <div class="method-description">
-
- <p>Unbinds the given handler.</p>
-
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Unbinds the given handler.
+</p>
-
- <div class="method-source-code" id="unbind-source">
- <pre><span class="ruby-comment"># File lib/safubot/evented.rb, line 19</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">unbind</span>(<span class="ruby-identifier">handler</span>)
- <span class="ruby-ivar">@handlers</span>[<span class="ruby-identifier">handler</span>[<span class="ruby-value">:evid</span>]].<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">handler</span>[<span class="ruby-value">:id</span>])
-<span class="ruby-keyword">end</span></pre>
- </div><!-- unbind-source -->
-
- </div>
-
+ </div>
+</div>
+<div class="tags">
+
-
- </div><!-- unbind-method -->
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
-
- </section><!-- public-instance-method-details -->
-
- </section><!-- 5Buntitled-5D -->
-</div><!-- documentation -->
+21
+22
+23</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/safubot/evented.rb', line 21</span>
+<span class='kw'>def</span> <span class='id unbind'>unbind</span><span class='lparen'>(</span><span class='id handler'>handler</span><span class='rparen'>)</span>
+ <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id handler'>handler</span><span class='lbracket'>[</span><span class='symbol'>:evid</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id delete'>delete</span><span class='lparen'>(</span><span class='id handler'>handler</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span><span class='rparen'>)</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
-<footer id="validator-badges">
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
-</footer>
+</div>
+
+ <div id="footer">
+ Generated on Mon Nov 28 20:20:04 2011 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.7.3 (ruby-1.9.2).
+</div>
+ </body>
+</html>
\ No newline at end of file