Method: MachO::LCStrMalformedError#initialize

Defined in:
lib/macho/exceptions.rb

#initialize(lc) ⇒ LCStrMalformedError

Returns a new instance of LCStrMalformedError.

Parameters:

  • lc (MachO::LoadCommand)

    the load command containing the string



160
161
162
163
# File 'lib/macho/exceptions.rb', line 160

def initialize(lc)
  super "Load command #{lc.type} at offset #{lc.view.offset} contains a " \
        "malformed string"
end