Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.read_binary
(::String path) -> ::String
read_binary(path)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems.rb, line 775
def self.read_binary(path)
File.binread(path)
end
Safely read a file in binary mode on all platforms.
See also
.rdoc_hooks_defined_via_plugin?
.refresh
.pre_uninstall
.register_default_spec
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0