[macruby-changes] [2473] MacRuby/trunk/lib/stringio.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 4 14:18:38 PDT 2009


Revision: 2473
          http://trac.macosforge.org/projects/ruby/changeset/2473
Author:   lsansonetti at apple.com
Date:     2009-09-04 14:18:38 -0700 (Fri, 04 Sep 2009)
Log Message:
-----------
StringIO#initialize: use a ByteString object by default

Modified Paths:
--------------
    MacRuby/trunk/lib/stringio.rb

Modified: MacRuby/trunk/lib/stringio.rb
===================================================================
--- MacRuby/trunk/lib/stringio.rb	2009-09-04 21:08:12 UTC (rev 2472)
+++ MacRuby/trunk/lib/stringio.rb	2009-09-04 21:18:38 UTC (rev 2473)
@@ -46,7 +46,7 @@
   #
   # Creates new StringIO instance from with _string_ and _mode_.
   #
-  def initialize(string = "", mode = nil)
+  def initialize(string = ByteString.new, mode = nil)
     @string = string.to_str  
     @pos = 0
     @lineno = 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090904/680c073c/attachment-0001.html>


More information about the macruby-changes mailing list