method
strict_oct
v2_6_3 -
Show latest stable
- Class:
Gem::Package::TarHeader
strict_oct(str)public
No documentation available.
# File lib/rubygems/package/tar_header.rb, line 127
def self.strict_oct(str)
return str.oct if str =~ /\A[0-7]*\z/
raise ArgumentError, "#{str.inspect} is not an octal string"
end