From 3a97a453c486cd1ce9456970b686ab24f8126980 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Fri, 26 Dec 2014 11:09:07 +0900 Subject: rewrite IO.for_fd. IO.for_fd should call IO#initialize to initialize the created object properly. It cannot be implemented in Ruby. --- mrblib/io.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'mrblib') diff --git a/mrblib/io.rb b/mrblib/io.rb index be715ba7a..c838b96e5 100644 --- a/mrblib/io.rb +++ b/mrblib/io.rb @@ -11,10 +11,6 @@ class IO BUF_SIZE = 4096 - def self.for_fd *args - self.new(*args) - end - def self.open(*args, &block) io = self.new(*args) -- cgit v1.2.3