class AppInfo::DSYM::MachO
DSYM
Mach-O
Public Class Methods
new(file, size = 0)
click to toggle source
# File lib/app_info/dsym.rb, line 117 def initialize(file, size = 0) @file = file @size = size end
Public Instance Methods
cpu_name()
click to toggle source
# File lib/app_info/dsym.rb, line 122 def cpu_name @file.cpusubtype end
cpu_type()
click to toggle source
# File lib/app_info/dsym.rb, line 126 def cpu_type @file.cputype end
header()
click to toggle source
# File lib/app_info/dsym.rb, line 145 def header @header ||= @file.header end
size(human_size: false)
click to toggle source
# File lib/app_info/dsym.rb, line 134 def size(human_size: false) return Util.size_to_human_size(@size) if human_size @size end
to_h()
click to toggle source
# File lib/app_info/dsym.rb, line 149 def to_h { uuid: uuid, type: type, cpu_name: cpu_name, cpu_type: cpu_type, size: size, human_size: size(human_size: true) } end
type()
click to toggle source
# File lib/app_info/dsym.rb, line 130 def type @file.filetype end
uuid()
click to toggle source
# File lib/app_info/dsym.rb, line 140 def uuid @file[:LC_UUID][0].uuid_string end
Also aliased as: debug_id