Class: ElfUtils::Types::Dwarf::AbbreviationDeclaration Private

Inherits:
CTypes::Struct
  • Object
show all
Defined in:
lib/elf_utils/types/dwarf.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#children?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


424
425
426
# File 'lib/elf_utils/types/dwarf.rb', line 424

def children?
  @children == 1
end

#inspectObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



413
414
415
416
417
418
419
420
421
422
# File 'lib/elf_utils/types/dwarf.rb', line 413

def inspect
  buf = "<%s\n    [%d] DW_TAG_%s\tDW_CHILDREN_%s\n" %
    [self.class.name, code, tag, (children == 0) ? "no" : "yes"]
  attribute_specifications.each do |spec|
    buf << "            %-15s DW_FORM_%s\n" %
      ["DW_AT_#{spec.name}", spec.form]
  end

  buf.chomp! << ">"
end