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 142
142:     def initialize(str = "")
143:       
144:       unless str.is_a?(::String)
145:         raise TypeError, "Expected type String, received #{str.class}."
146:       end
147:       
148:       super(str)
149:     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 174
174:     def to_raw
175:       ByteString.new(self.value)
176:     end

[Validate]