58 lines
1.3 KiB
Ruby
Generated
58 lines
1.3 KiB
Ruby
Generated
# typed: true
|
|
|
|
# DO NOT EDIT MANUALLY
|
|
# This is an autogenerated file for types exported from the `base32` gem.
|
|
# Please instead update this file by running `bin/tapioca gem base32`.
|
|
|
|
|
|
# Module for encoding and decoding in Base32 per RFC 3548
|
|
#
|
|
# source://base32//lib/base32.rb#4
|
|
module Base32
|
|
class << self
|
|
# source://base32//lib/base32.rb#38
|
|
def chunks(str, size); end
|
|
|
|
# source://base32//lib/base32.rb#52
|
|
def decode(str); end
|
|
|
|
# source://base32//lib/base32.rb#48
|
|
def encode(str); end
|
|
|
|
# source://base32//lib/base32.rb#56
|
|
def random_base32(length = T.unsafe(nil), padding = T.unsafe(nil)); end
|
|
|
|
# Returns the value of attribute table.
|
|
#
|
|
# source://base32//lib/base32.rb#9
|
|
def table; end
|
|
|
|
# @raise [ArgumentError]
|
|
#
|
|
# source://base32//lib/base32.rb#64
|
|
def table=(table); end
|
|
|
|
# @return [Boolean]
|
|
#
|
|
# source://base32//lib/base32.rb#69
|
|
def table_valid?(table); end
|
|
end
|
|
end
|
|
|
|
# source://base32//lib/base32.rb#12
|
|
class Base32::Chunk
|
|
# @return [Chunk] a new instance of Chunk
|
|
#
|
|
# source://base32//lib/base32.rb#13
|
|
def initialize(bytes); end
|
|
|
|
# source://base32//lib/base32.rb#17
|
|
def decode; end
|
|
|
|
# source://base32//lib/base32.rb#29
|
|
def encode; end
|
|
end
|
|
|
|
# source://base32//lib/base32.rb#5
|
|
Base32::TABLE = T.let(T.unsafe(nil), String)
|