Sha256: 4d35f7d35e6e78fc9f73597dd28097ccec52add9ebc7e0960303b44dcdb457c8
Contents?: true
Size: 224 Bytes
Versions: 2
Compression:
Stored size: 224 Bytes
Contents
module HanoiTower class Ring def initialize size @size = size end def can_push?(other) @size > other.size end def to_s @size.to_s end def size @size end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanoi_tower-0.1.1 | lib/hanoi_tower/ring.rb |
hanoi_tower-0.1.0 | lib/hanoi_tower/ring.rb |