lib/slowfat/bootsect.rb
def media_descriptor_type
      case @media_descriptor_id
        when 0xE5
          :floppy_8inch
        when 0xF0
          :floppy_35inch_hd
        when 0xF8
          :fixed_disk
        when 0xFD
          :floppy_525inch_ld
        else
          :unknown
      end
    end
##
# Return the type of media this boot sector is on
# @return [Symbol] the type of media described by the media descriptor in the boot sector
Return the type of media this boot sector is on
Return the type of media this boot sector is on
def media_descriptor_type
      case @media_descriptor_id
        when 0xE5
          :floppy_8inch
        when 0xF0
          :floppy_35inch_hd
        when 0xF8
          :fixed_disk
        when 0xFD
          :floppy_525inch_ld
        else
          :unknown
      end
    end
def media_descriptor_type case @media_descriptor_id when 0xE5 :floppy_8inch when 0xF0 :floppy_35inch_hd when 0xF8 :fixed_disk when 0xFD :floppy_525inch_ld else :unknown end end
Return the type of media this boot sector is on
Return the type of media this boot sector is on
the type of media described by the media descriptor in the boot sector
the type of media described by the media descriptor in the boot sector
Symbol