class Morchi::Disk

The Disk class

Constants

DISC_RAW

Raw value.

Attributes

raw[R]

Property.

Public Class Methods

new(raw) click to toggle source

Initialize.

# File lib/morchi/disk.rb, line 16
def initialize(raw)
  @raw = DISC_RAW[raw]
end

Public Instance Methods

<=>(other) click to toggle source

(Comparable) Require implemented.

# File lib/morchi/disk.rb, line 21
def <=>(other)
  raw <=> other.raw
end
to_s() click to toggle source
# File lib/morchi/disk.rb, line 26
def to_s
  DISC_RAW.invert[@raw].to_s
end