Class: Hackmac::Disks

Inherits:
Object
  • Object
show all
Includes:
Plist
Defined in:
lib/hackmac/disks.rb

Direct Known Subclasses

ContainerDisk

Instance Method Summary collapse

Methods included from Plist

#as_hash, #method_missing, #plist, #to_json

Constructor Details

#initialize(limiter: nil, device: nil) ⇒ Disks

Returns a new instance of Disks.



18
19
20
# File 'lib/hackmac/disks.rb', line 18

def initialize(limiter: nil, device: nil)
  plist *(%w[ diskutil list -plist ] + [ limiter, device ].compact)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Hackmac::Plist