class Gomasio::Disk
Constants
- DISC_RAW_ID
Attributes
raw[R]
Public Class Methods
new(color)
click to toggle source
# File lib/gomasio/disk.rb, line 14 def initialize(color) @raw = DISC_RAW_ID[color] end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/gomasio/disk.rb, line 19 def <=>(other) raw <=> other.raw end
reverse()
click to toggle source
# File lib/gomasio/disk.rb, line 29 def reverse self.class.send(DISC_RAW_ID.invert[-@raw]) end
to_s()
click to toggle source
# File lib/gomasio/disk.rb, line 24 def to_s DISC_RAW_ID.invert[@raw].to_s end