Sha256: 7172576e704e0f75ad075c122e1e1eb970e1efb40945e00f2c5bec6604bc6c8f
Contents?: true
Size: 352 Bytes
Versions: 17
Compression:
Stored size: 352 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 Backports.alias_method self, :ungetbyte, :ungetc end
Version data entries
17 entries across 17 versions & 1 rubygems