Class: KeyedArchive::BinaryString
- Inherits:
-
String
- Object
- String
- KeyedArchive::BinaryString
- Defined in:
- lib/imsg-grep/apple/keyed_archive.rb
Instance Method Summary collapse
-
#initialize(s) ⇒ BinaryString
constructor
A new instance of BinaryString.
- #to_json ⇒ Object
Constructor Details
#initialize(s) ⇒ BinaryString
Returns a new instance of BinaryString.
14 |
# File 'lib/imsg-grep/apple/keyed_archive.rb', line 14 def initialize(s) = super(s).force_encoding("BINARY") |
Instance Method Details
#to_json ⇒ Object
15 |
# File 'lib/imsg-grep/apple/keyed_archive.rb', line 15 def to_json(...) = Base64.strict_encode64(self).to_json(...) |