# File lib/virt-p2v/blockdevice.rb, line 67 def self.[](device) raise NoSuchDeviceError unless @@devices.has_key?(device) @@devices[device] end
# File lib/virt-p2v/blockdevice.rb, line 63 def self.all_devices @@devices.values end
# File lib/virt-p2v/blockdevice.rb, line 75 def initialize(device, type) @device = device @type = type @@devices[device] = self end