Module: AppleData

Defined in:
lib/apple_data.rb,
lib/apple_data/ioreg.rb,
lib/apple_data/macho.rb,
lib/apple_data/keybag.rb,
lib/apple_data/version.rb,
lib/apple_data/lockdown.rb,
lib/apple_data/data_file.rb

Overview

typed: true frozen_string_literal: true

Defined Under Namespace

Classes: DataFile, GIDKeyBag, IORegClass, IORegData, LockdownData, MachoData

Constant Summary collapse

VERSION =
'1.0.629'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.data_locationObject



15
16
17
# File 'lib/apple_data.rb', line 15

def self.data_location
  @apple_data || DEFAULT_APPLE_DATA_SHARE
end

.data_location=(location) ⇒ Object



11
12
13
# File 'lib/apple_data.rb', line 11

def self.data_location=(location)
  @apple_data = location
end

Instance Method Details

#get_data(file) ⇒ Object



7
8
9
# File 'lib/apple_data.rb', line 7

def get_data(file)
  YAML.load_file(File.join(@apple_data, file))
end