Class: EmergeCLI::BoundSymbol

Inherits:
Object
  • Object
show all
Defined in:
lib/utils/macho_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(segment_offset:, library:, offset:, symbol:) ⇒ BoundSymbol

Returns a new instance of BoundSymbol.



317
318
319
320
321
322
323
# File 'lib/utils/macho_parser.rb', line 317

def initialize(segment_offset:, library:, offset:, symbol:)
  @segment_offset = segment_offset
  @library = library
  @offset = offset
  @symbol = symbol
  @address = 0
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



315
316
317
# File 'lib/utils/macho_parser.rb', line 315

def address
  @address
end

#libraryObject

Returns the value of attribute library.



315
316
317
# File 'lib/utils/macho_parser.rb', line 315

def library
  @library
end

#offsetObject

Returns the value of attribute offset.



315
316
317
# File 'lib/utils/macho_parser.rb', line 315

def offset
  @offset
end

#segment_offsetObject

Returns the value of attribute segment_offset.



315
316
317
# File 'lib/utils/macho_parser.rb', line 315

def segment_offset
  @segment_offset
end

#symbolObject

Returns the value of attribute symbol.



315
316
317
# File 'lib/utils/macho_parser.rb', line 315

def symbol
  @symbol
end