Skip to content

Commit d0491c7

Browse files
committed
Allow rings to be converted to normal arrays with to_a
1 parent 1e8299d commit d0491c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/server/core.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def ring
4848
self
4949
end
5050

51+
def to_a
52+
Array.new(self)
53+
end
54+
5155
#TODO: def each_with_ring
5256
end
5357
end

0 commit comments

Comments
 (0)