Class Origami::HexaString
In: sources/parser/string.rb
sources/parser/obfuscation.rb
Parent: ::String

Class representing an hexadecimal-writen String Object.

Methods

Included Modules

String

External Aliases

to_str -> value

Public Class methods

Creates a new PDF hexadecimal String.

str:The string value.

[Source]

    # File sources/parser/string.rb, line 54
54:     def initialize(str = "", indirect = false)
55:       
56:       unless str.is_a?(::String)
57:         raise TypeError, "Expected type String, received #{str.class}."
58:       end
59:       
60:       super(indirect, str)
61:     
62:     end

Public Instance methods

[Source]

     # File sources/parser/obfuscation.rb, line 175
175:     def to_obfuscated_str
176:       to_s
177:     end

Converts self to ByteString

[Source]

    # File sources/parser/string.rb, line 87
87:     def to_raw
88:       ByteString.new(self.value)
89:     end

[Validate]