lib/app_info/dsym/macho.rb in app-info-3.0.0.beta3 vs lib/app_info/dsym/macho.rb in app-info-3.0.0.beta4
- old
+ new
@@ -11,36 +11,43 @@
def initialize(file, size = 0)
@file = file
@size = size
end
+ # @return [String]
def cpu_name
@file.cpusubtype
end
+ # @return [String]
def cpu_type
@file.cputype
end
+ # @return [String]
def type
@file.filetype
end
+ # @return [String, Integer]
def size(human_size: false)
return number_to_human_size(@size) if human_size
@size
end
+ # @return [String]
def uuid
@file[:LC_UUID][0].uuid_string
end
alias debug_id uuid
+ # @return [::MachO::Headers]
def header
@header ||= @file.header
end
+ # @return [Hash{Symbol => String, Integer}]
def to_h
{
uuid: uuid,
type: type,
cpu_name: cpu_name,