Skip to content

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)

Safely read a file in binary mode on all platforms.