lib/hanoi/jane/constrained_towers.rb in hanoi-jane-0.1.0 vs lib/hanoi/jane/constrained_towers.rb in hanoi-jane-0.1.1
- old
+ new
@@ -12,10 +12,21 @@
end
def ternary
rebased
end
-
+
+ def inspect
+ i = super
+
+ i.delete :binary
+ i[:ternary] = rebased
+
+ i
+ end
+
+ private
+
def find_stack
case @source
when 0
@directions[@disc] = :right
return 1