class method
Gem::Package::TarHeader.strict_oct
strict_oct(str)
lib/rubygems/package/tar_header.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/package/tar_header.rb, line 129
def self.strict_oct(str)
str.strip!
return str.oct if /\A[0-7]*\z/.match?(str)
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0