Sha256: 0ca33885c6704f229fa25c54ecd15d87648f5878eeaef0f53b845680dc974489

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

class << IO
  # Standard in Ruby 1.9.3 See official documentation[http://ruby-doc.org/core-1.9.3/IO.html#method-c-write]
  def write(name, string, offset = nil, options = Backports::Undefined)
    Backports.write(false, name, string, offset, options)
  end unless method_defined? :write

  # Standard in Ruby 1.9.3 See official documentation[http://ruby-doc.org/core-1.9.3/IO.html#method-c-binwrite]
  # This method does support an options hash, see http://bugs.ruby-lang.org/issues/5782
  def binwrite(name, string, offset = nil, options = Backports::Undefined)
    Backports.write(true, name, string, offset, options)
  end unless method_defined? :binwrite
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
backports-2.4.0 lib/backports/1.9.3/io.rb