Class: Python::Pickle::ByteArray
- Inherits:
-
String
- Object
- String
- Python::Pickle::ByteArray
- Defined in:
- lib/python/pickle/byte_array.rb
Overview
Represents a Python bytearray
object.
Constant Summary collapse
- ENCODINGS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Mapping of python
codecs
encoding names and their Ruby equivalents. { nil => Encoding::ASCII_8BIT, 'latin-1' => Encoding::ISO_8859_1 }
Instance Method Summary collapse
-
#initialize(string = '', encoding = nil) ⇒ ByteArray
constructor
Initializes the byte array.
-
#inspect ⇒ String
Inspects the byte array object.
Constructor Details
Instance Method Details
#inspect ⇒ String
Inspects the byte array object.
34 35 36 |
# File 'lib/python/pickle/byte_array.rb', line 34 def inspect "#<#{self.class}: #{super}>" end |