Rubocop-inspired style tweaks

This commit is contained in:
Maruno17
2020-09-06 01:10:02 +01:00
parent 5073f86190
commit 6c4670eaa3
7 changed files with 329 additions and 365 deletions

View File

@@ -431,7 +431,7 @@ class VoltorbFlip
# Create and split a string for the number, with padded 0s
zeroes=2-num.to_s.length
numText=""
for j in 0...zeroes
zeroes.times do
numText+="0"
end
numText+=num.to_s
@@ -449,7 +449,7 @@ class VoltorbFlip
# Create and split a string for the number, with padded 0s
zeroes=2-num.to_s.length
numText=""
for j in 0...zeroes
zeroes.times do
numText+="0"
end
numText+=num.to_s
@@ -466,7 +466,7 @@ class VoltorbFlip
def pbCreateCoins(source,y)
zeroes=5-source.to_s.length
coinText=""
for i in 0...zeroes
zeroes.times do
coinText+="0"
end
coinText+=source.to_s