X7ROOT File Manager
Current Path:
/opt/alt/ruby34/share/ruby/prism/polyfill
opt
/
alt
/
ruby34
/
share
/
ruby
/
prism
/
polyfill
/
📁
..
📄
byteindex.rb
(324 B)
📄
unpack1.rb
(536 B)
Editing: byteindex.rb
# frozen_string_literal: true # Polyfill for String#byteindex, which didn't exist until Ruby 3.2. if !("".respond_to?(:byteindex)) String.include( Module.new { def byteindex(needle, offset = 0) charindex = index(needle, offset) slice(0...charindex).bytesize if charindex end } ) end
Upload File
Create Folder