End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Package::TarHeader.strict_oct
strict_oct(str)
lib/rubygems/package/tar_header.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/package/tar_header.rb, line 126
def self.strict_oct(str)
return str.strip.oct if str.strip =~ /\A[0-7]*\z/
raise ArgumentError, "#{str.inspect} is not an octal string"
end
No documentation available
See also
.oct_or_256based
#calculate_checksum
.new
#empty?
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0