doc/rdoc/classes/RFuzz/PushBackIO.src/M000012.html in rfuzz-0.8 vs doc/rdoc/classes/RFuzz/PushBackIO.src/M000012.html in rfuzz-0.9
- old
+ new
@@ -3,17 +3,19 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>pop (RFuzz::PushBackIO)</title>
+ <title>push (RFuzz::PushBackIO)</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/pushbackio.rb, line 24</span>
-24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>(<span class="ruby-identifier">n</span>)
-25: <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">rewind</span>
-26: <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">n</span>) <span class="ruby-operator">||</span> <span class="ruby-value str">""</span>
-27: <span class="ruby-keyword kw">end</span></pre>
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/pushbackio.rb, line 26</span>
+26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">content</span>)
+27: <span class="ruby-identifier">random_death</span>
+28: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">content</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
+29: <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">content</span>)
+30: <span class="ruby-keyword kw">end</span>
+31: <span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file