Parent

Included Modules

Class/Module Index [+]

Quicksearch

Origami::HexaString

Class representing an hexadecimal-writen String Object.

Public Class Methods

new(str = "") click to toggle source

Creates a new PDF hexadecimal String.

str

The string value.

# File lib/origami/string.rb, line 198
def initialize(str = "")
  
  unless str.is_a?(::String)
    raise TypeError, "Expected type String, received #{str.class}."
  end
  
  super(str)
end

Public Instance Methods

to_obfuscated_str() click to toggle source
# File lib/origami/obfuscation.rb, line 179
def to_obfuscated_str
  to_s
end
to_raw() click to toggle source

Converts self to ByteString

# File lib/origami/string.rb, line 235
def to_raw
  ByteString.new(self.value)
end
value() click to toggle source
# File lib/origami/string.rb, line 239
def value
  self.decrypt! if self.is_a?(Encryption::EncryptedString) and not @decrypted

  to_str
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.