Sha256: 77b1879c8877a640a4434014ada09e2737e11c82421328e1a11f1ce83290c53c
Contents?: true
Size: 370 Bytes
Versions: 6
Compression:
Stored size: 370 Bytes
Contents
class IO # Standard in Ruby 1.8.8. See official documentation[http://ruby-doc.org/core-1.9/classes/IO.html] class << self def self.try_convert(obj) return nil unless obj.respond_to?(:to_io) Backports.coerce_to(obj, IO, :to_io) end unless method_defined? :try_convert end alias_method :ungetbyte, :ungetc unless method_defined? :ungetbyte end
Version data entries
6 entries across 6 versions & 1 rubygems