class IO

def readable?

def readable?
	if self.wait_readable(0).nil?
		# timeout means it is not eof
		return true
	else
		!self.eof?
	end
end