ionian 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -930,7 +930,7 @@ connected client is passed to the block as an Ionain::Client.</p>
930
930
  </div>
931
931
 
932
932
  <div id="footer">
933
- Generated on Wed Jan 28 16:07:20 2015 by
933
+ Generated on Wed Feb 11 16:57:31 2015 by
934
934
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
935
935
  0.8.7.6 (ruby-2.1.5).
936
936
  </div>
@@ -333,7 +333,7 @@
333
333
  <li class="public ">
334
334
  <span class="summary_signature">
335
335
 
336
- <a href="#expression-instance_method" title="#expression (instance method)">- (Object) <strong>expression</strong> </a>
336
+ <a href="#expression-instance_method" title="#expression (instance method)">- (Regexp) <strong>expression</strong> </a>
337
337
 
338
338
 
339
339
 
@@ -348,7 +348,7 @@
348
348
 
349
349
 
350
350
  <span class="summary_desc"><div class='inline'>
351
- <p>Returns the regular expression used to match incoming data.</p>
351
+ <p>The regular expression used to match incoming data.</p>
352
352
  </div></span>
353
353
 
354
354
  </li>
@@ -375,6 +375,30 @@
375
375
  <p>Set the regular expression used to match incoming data.</p>
376
376
  </div></span>
377
377
 
378
+ </li>
379
+
380
+
381
+ <li class="public ">
382
+ <span class="summary_signature">
383
+
384
+ <a href="#fd-instance_method" title="#fd (instance method)">- (IO) <strong>fd</strong> </a>
385
+
386
+
387
+
388
+ </span>
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+ <span class="summary_desc"><div class='inline'>
399
+ <p>The file descriptor for this socket.</p>
400
+ </div></span>
401
+
378
402
  </li>
379
403
 
380
404
 
@@ -470,7 +494,7 @@
470
494
 
471
495
 
472
496
  <span class="summary_desc"><div class='inline'>
473
- <p>Returns true if the socket remains open after writing data.</p>
497
+ <p>True if the socket remains open after writing data.</p>
474
498
  </div></span>
475
499
 
476
500
  </li>
@@ -1510,13 +1534,13 @@ the block.</p>
1510
1534
  <pre class="lines">
1511
1535
 
1512
1536
 
1513
- 272
1514
- 273
1515
- 274
1516
- 275</pre>
1537
+ 280
1538
+ 281
1539
+ 282
1540
+ 283</pre>
1517
1541
  </td>
1518
1542
  <td>
1519
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 272</span>
1543
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 280</span>
1520
1544
 
1521
1545
  <span class='kw'>def</span> <span class='id identifier rubyid_closed?'>closed?</span>
1522
1546
  <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>unless</span> <span class='ivar'>@socket</span>
@@ -1618,20 +1642,20 @@ the block.</p>
1618
1642
  <pre class="lines">
1619
1643
 
1620
1644
 
1621
- 196
1622
- 197
1623
- 198
1624
- 199
1625
- 200
1626
- 201
1627
- 202
1628
- 203
1629
1645
  204
1630
1646
  205
1631
- 206</pre>
1647
+ 206
1648
+ 207
1649
+ 208
1650
+ 209
1651
+ 210
1652
+ 211
1653
+ 212
1654
+ 213
1655
+ 214</pre>
1632
1656
  </td>
1633
1657
  <td>
1634
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 196</span>
1658
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 204</span>
1635
1659
 
1636
1660
  <span class='kw'>def</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
1637
1661
  <span class='id identifier rubyid_create_socket'>create_socket</span> <span class='kw'>unless</span> <span class='ivar'>@persistent</span>
@@ -1652,7 +1676,7 @@ the block.</p>
1652
1676
  <div class="method_details ">
1653
1677
  <h3 class="signature " id="expression-instance_method">
1654
1678
 
1655
- - (<tt>Object</tt>) <strong>expression</strong>
1679
+ - (<tt>Regexp</tt>) <strong>expression</strong>
1656
1680
 
1657
1681
 
1658
1682
 
@@ -1668,6 +1692,24 @@ the block.</p>
1668
1692
  </div>
1669
1693
  <div class="tags">
1670
1694
 
1695
+ <p class="tag_title">Returns:</p>
1696
+ <ul class="return">
1697
+
1698
+ <li>
1699
+
1700
+
1701
+ <span class='type'>(<tt>Regexp</tt>)</span>
1702
+
1703
+
1704
+
1705
+ &mdash;
1706
+ <div class='inline'>
1707
+ <p>the regular expression used to match incoming data.</p>
1708
+ </div>
1709
+
1710
+ </li>
1711
+
1712
+ </ul>
1671
1713
 
1672
1714
  </div><table class="source_code">
1673
1715
  <tr>
@@ -1675,12 +1717,12 @@ the block.</p>
1675
1717
  <pre class="lines">
1676
1718
 
1677
1719
 
1678
- 172
1679
- 173
1680
- 174</pre>
1720
+ 178
1721
+ 179
1722
+ 180</pre>
1681
1723
  </td>
1682
1724
  <td>
1683
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 172</span>
1725
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 178</span>
1684
1726
 
1685
1727
  <span class='kw'>def</span> <span class='id identifier rubyid_expression'>expression</span>
1686
1728
  <span class='ivar'>@expression</span> <span class='op'>||</span> <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_expression'>expression</span>
@@ -1708,7 +1750,34 @@ the block.</p>
1708
1750
  </div>
1709
1751
  </div>
1710
1752
  <div class="tags">
1753
+ <p class="tag_title">Parameters:</p>
1754
+ <ul class="param">
1711
1755
 
1756
+ <li>
1757
+
1758
+ <span class='name'>exp</span>
1759
+
1760
+
1761
+ <span class='type'>(<tt>Regexp</tt>, <tt>String</tt>)</span>
1762
+
1763
+
1764
+
1765
+ &mdash;
1766
+ <div class='inline'>
1767
+ <p>Match expression.</p>
1768
+ </div>
1769
+
1770
+ </li>
1771
+
1772
+ </ul>
1773
+
1774
+
1775
+ <p class="tag_title">See Also:</p>
1776
+ <ul class="see">
1777
+
1778
+ <li><span class='object_link'><a href="Extension/IO.html#expression%3D-instance_method" title="Ionian::Extension::IO#expression= (method)">Extension::IO#expression=</a></span></li>
1779
+
1780
+ </ul>
1712
1781
 
1713
1782
  </div><table class="source_code">
1714
1783
  <tr>
@@ -1716,13 +1785,13 @@ the block.</p>
1716
1785
  <pre class="lines">
1717
1786
 
1718
1787
 
1719
- 177
1720
- 178
1721
- 179
1722
- 180</pre>
1788
+ 185
1789
+ 186
1790
+ 187
1791
+ 188</pre>
1723
1792
  </td>
1724
1793
  <td>
1725
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 177</span>
1794
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 185</span>
1726
1795
 
1727
1796
  <span class='kw'>def</span> <span class='id identifier rubyid_expression='>expression=</span> <span class='id identifier rubyid_exp'>exp</span>
1728
1797
  <span class='ivar'>@expression</span> <span class='op'>=</span> <span class='id identifier rubyid_exp'>exp</span>
@@ -1731,6 +1800,66 @@ the block.</p>
1731
1800
  </td>
1732
1801
  </tr>
1733
1802
  </table>
1803
+ </div>
1804
+
1805
+ <div class="method_details ">
1806
+ <h3 class="signature " id="fd-instance_method">
1807
+
1808
+ - (<tt>IO</tt>) <strong>fd</strong>
1809
+
1810
+
1811
+
1812
+
1813
+
1814
+ </h3><div class="docstring">
1815
+ <div class="discussion">
1816
+
1817
+ <p>Returns the file descriptor for this socket. For use with methods like
1818
+ IO.select.</p>
1819
+
1820
+
1821
+ </div>
1822
+ </div>
1823
+ <div class="tags">
1824
+
1825
+ <p class="tag_title">Returns:</p>
1826
+ <ul class="return">
1827
+
1828
+ <li>
1829
+
1830
+
1831
+ <span class='type'>(<tt>IO</tt>)</span>
1832
+
1833
+
1834
+
1835
+ &mdash;
1836
+ <div class='inline'>
1837
+ <p>the file descriptor for this socket. For use with methods like IO.select.</p>
1838
+ </div>
1839
+
1840
+ </li>
1841
+
1842
+ </ul>
1843
+
1844
+ </div><table class="source_code">
1845
+ <tr>
1846
+ <td>
1847
+ <pre class="lines">
1848
+
1849
+
1850
+ 173
1851
+ 174
1852
+ 175</pre>
1853
+ </td>
1854
+ <td>
1855
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 173</span>
1856
+
1857
+ <span class='kw'>def</span> <span class='id identifier rubyid_fd'>fd</span>
1858
+ <span class='ivar'>@socket</span>
1859
+ <span class='kw'>end</span></pre>
1860
+ </td>
1861
+ </tr>
1862
+ </table>
1734
1863
  </div>
1735
1864
 
1736
1865
  <div class="method_details ">
@@ -1760,12 +1889,12 @@ non-persistent sockets.</p>
1760
1889
  <pre class="lines">
1761
1890
 
1762
1891
 
1763
- 279
1764
- 280
1765
- 281</pre>
1892
+ 287
1893
+ 288
1894
+ 289</pre>
1766
1895
  </td>
1767
1896
  <td>
1768
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 279</span>
1897
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 287</span>
1769
1898
 
1770
1899
  <span class='kw'>def</span> <span class='id identifier rubyid_flush'>flush</span>
1771
1900
  <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_flush'>flush</span> <span class='kw'>if</span> <span class='ivar'>@persistent</span>
@@ -1864,13 +1993,13 @@ non-persistent sockets.</p>
1864
1993
  <pre class="lines">
1865
1994
 
1866
1995
 
1867
- 266
1868
- 267
1869
- 268
1870
- 269</pre>
1996
+ 274
1997
+ 275
1998
+ 276
1999
+ 277</pre>
1871
2000
  </td>
1872
2001
  <td>
1873
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 266</span>
2002
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 274</span>
1874
2003
 
1875
2004
  <span class='kw'>def</span> <span class='id identifier rubyid_has_data?'>has_data?</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span>
1876
2005
  <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='ivar'>@socket</span>
@@ -1893,7 +2022,7 @@ non-persistent sockets.</p>
1893
2022
  </h3><div class="docstring">
1894
2023
  <div class="discussion">
1895
2024
 
1896
- <p>Returns true if the socket remains open after writing data.</p>
2025
+ <p>Returns True if the socket remains open after writing data.</p>
1897
2026
 
1898
2027
 
1899
2028
  </div>
@@ -1910,6 +2039,11 @@ non-persistent sockets.</p>
1910
2039
 
1911
2040
 
1912
2041
 
2042
+ &mdash;
2043
+ <div class='inline'>
2044
+ <p>True if the socket remains open after writing data.</p>
2045
+ </div>
2046
+
1913
2047
  </li>
1914
2048
 
1915
2049
  </ul>
@@ -1920,12 +2054,12 @@ non-persistent sockets.</p>
1920
2054
  <pre class="lines">
1921
2055
 
1922
2056
 
1923
- 183
1924
- 184
1925
- 185</pre>
2057
+ 191
2058
+ 192
2059
+ 193</pre>
1926
2060
  </td>
1927
2061
  <td>
1928
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 183</span>
2062
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 191</span>
1929
2063
 
1930
2064
  <span class='kw'>def</span> <span class='id identifier rubyid_persistent?'>persistent?</span>
1931
2065
  <span class='ivar'>@persistent</span> <span class='op'>==</span> <span class='kw'>false</span> <span class='op'>||</span> <span class='ivar'>@persistent</span> <span class='op'>==</span> <span class='kw'>nil</span> <span class='op'>?</span> <span class='kw'>false</span> <span class='op'>:</span> <span class='kw'>true</span>
@@ -1962,12 +2096,12 @@ any string not already ending with one.</p>
1962
2096
  <pre class="lines">
1963
2097
 
1964
2098
 
1965
- 285
1966
- 286
1967
- 287</pre>
2099
+ 293
2100
+ 294
2101
+ 295</pre>
1968
2102
  </td>
1969
2103
  <td>
1970
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 285</span>
2104
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 293</span>
1971
2105
 
1972
2106
  <span class='kw'>def</span> <span class='id identifier rubyid_puts'>puts</span> <span class='op'>*</span><span class='id identifier rubyid_string'>string</span>
1973
2107
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span> <span class='id identifier rubyid_string'>string</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_s'>s</span><span class='op'>|</span> <span class='id identifier rubyid_s'>s</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
@@ -2040,14 +2174,14 @@ an error. Method callbacks can be registered with
2040
2174
  <pre class="lines">
2041
2175
 
2042
2176
 
2043
- 245
2044
- 246
2045
- 247
2046
- 248
2047
- 249</pre>
2177
+ 253
2178
+ 254
2179
+ 255
2180
+ 256
2181
+ 257</pre>
2048
2182
  </td>
2049
2183
  <td>
2050
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 245</span>
2184
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 253</span>
2051
2185
 
2052
2186
  <span class='kw'>def</span> <span class='id identifier rubyid_register_error_handler'>register_error_handler</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
2053
2187
  <span class='ivar'>@ionian_error_handlers</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_block'>block</span> <span class='kw'>unless</span> <span class='ivar'>@ionian_error_handlers</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_block'>block</span>
@@ -2122,14 +2256,14 @@ receives matched data. Method callbacks can be registered with
2122
2256
  <pre class="lines">
2123
2257
 
2124
2258
 
2125
- 213
2126
- 214
2127
- 215
2128
- 216
2129
- 217</pre>
2259
+ 221
2260
+ 222
2261
+ 223
2262
+ 224
2263
+ 225</pre>
2130
2264
  </td>
2131
2265
  <td>
2132
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 213</span>
2266
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 221</span>
2133
2267
 
2134
2268
  <span class='kw'>def</span> <span class='id identifier rubyid_register_match_handler'>register_match_handler</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
2135
2269
  <span class='ivar'>@ionian_match_handlers</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_block'>block</span> <span class='kw'>unless</span> <span class='ivar'>@ionian_match_handlers</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_block'>block</span>
@@ -2168,13 +2302,13 @@ receives matched data. Method callbacks can be registered with
2168
2302
  <pre class="lines">
2169
2303
 
2170
2304
 
2171
- 222
2172
- 223
2173
- 224
2174
- 225</pre>
2305
+ 230
2306
+ 231
2307
+ 232
2308
+ 233</pre>
2175
2309
  </td>
2176
2310
  <td>
2177
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 222</span>
2311
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 230</span>
2178
2312
 
2179
2313
  <span class='kw'>def</span> <span class='id identifier rubyid_register_observer'>register_observer</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
2180
2314
  <span class='const'>STDOUT</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>WARN: Call to deprecated method </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid___method__'>__method__</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
@@ -2212,14 +2346,14 @@ raised.</p>
2212
2346
  <pre class="lines">
2213
2347
 
2214
2348
 
2215
- 255
2216
- 256
2217
- 257
2218
- 258
2219
- 259</pre>
2349
+ 263
2350
+ 264
2351
+ 265
2352
+ 266
2353
+ 267</pre>
2220
2354
  </td>
2221
2355
  <td>
2222
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 255</span>
2356
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 263</span>
2223
2357
 
2224
2358
  <span class='kw'>def</span> <span class='id identifier rubyid_unregister_error_handler'>unregister_error_handler</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
2225
2359
  <span class='ivar'>@ionian_error_handlers</span><span class='period'>.</span><span class='id identifier rubyid_delete_if'>delete_if</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span> <span class='id identifier rubyid_o'>o</span> <span class='op'>==</span> <span class='id identifier rubyid_block'>block</span> <span class='rbrace'>}</span>
@@ -2257,14 +2391,14 @@ raised.</p>
2257
2391
  <pre class="lines">
2258
2392
 
2259
2393
 
2260
- 228
2261
- 229
2262
- 230
2263
- 231
2264
- 232</pre>
2394
+ 236
2395
+ 237
2396
+ 238
2397
+ 239
2398
+ 240</pre>
2265
2399
  </td>
2266
2400
  <td>
2267
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 228</span>
2401
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 236</span>
2268
2402
 
2269
2403
  <span class='kw'>def</span> <span class='id identifier rubyid_unregister_match_handler'>unregister_match_handler</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
2270
2404
  <span class='ivar'>@ionian_match_handlers</span><span class='period'>.</span><span class='id identifier rubyid_delete_if'>delete_if</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span> <span class='id identifier rubyid_o'>o</span> <span class='op'>==</span> <span class='id identifier rubyid_block'>block</span> <span class='rbrace'>}</span>
@@ -2303,13 +2437,13 @@ raised.</p>
2303
2437
  <pre class="lines">
2304
2438
 
2305
2439
 
2306
- 235
2307
- 236
2308
- 237
2309
- 238</pre>
2440
+ 243
2441
+ 244
2442
+ 245
2443
+ 246</pre>
2310
2444
  </td>
2311
2445
  <td>
2312
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 235</span>
2446
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 243</span>
2313
2447
 
2314
2448
  <span class='kw'>def</span> <span class='id identifier rubyid_unregister_observer'>unregister_observer</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
2315
2449
  <span class='const'>STDOUT</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>WARN: Call to deprecated method </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid___method__'>__method__</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
@@ -2368,14 +2502,6 @@ raised.</p>
2368
2502
  <pre class="lines">
2369
2503
 
2370
2504
 
2371
- 291
2372
- 292
2373
- 293
2374
- 294
2375
- 295
2376
- 296
2377
- 297
2378
- 298
2379
2505
  299
2380
2506
  300
2381
2507
  301
@@ -2394,10 +2520,18 @@ raised.</p>
2394
2520
  314
2395
2521
  315
2396
2522
  316
2397
- 317</pre>
2523
+ 317
2524
+ 318
2525
+ 319
2526
+ 320
2527
+ 321
2528
+ 322
2529
+ 323
2530
+ 324
2531
+ 325</pre>
2398
2532
  </td>
2399
2533
  <td>
2400
- <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 291</span>
2534
+ <pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 299</span>
2401
2535
 
2402
2536
  <span class='kw'>def</span> <span class='id identifier rubyid_write'>write</span> <span class='id identifier rubyid_string'>string</span>
2403
2537
  <span class='id identifier rubyid_create_socket'>create_socket</span> <span class='kw'>unless</span> <span class='ivar'>@persistent</span>
@@ -2436,7 +2570,7 @@ raised.</p>
2436
2570
  </div>
2437
2571
 
2438
2572
  <div id="footer">
2439
- Generated on Wed Jan 28 16:07:21 2015 by
2573
+ Generated on Wed Feb 11 16:57:32 2015 by
2440
2574
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2441
2575
  0.8.7.6 (ruby-2.1.5).
2442
2576
  </div>