Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Util.popen
popen(*command)
lib/rubygems/util.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/util.rb, line 55
def self.popen(*command)
IO.popen command, &:read
end
This calls IO.popen and reads the result