delete_prefix with a string is easier to read than a regular expression also it should be faster. It is available since ruby 2.5 and the gem requires ruby 2.7. https://github.com/ruby/pathname/commit/0070f43f19
rb_ary_freeze
nil
assign_error
shutdown
Gem::Platform.local