lib/games/shared/io_terminal.rb in games_bfox-0.4.0 vs lib/games/shared/io_terminal.rb in games_bfox-0.6.0
- old
+ new
@@ -9,12 +9,12 @@
end
def receive
result = gets.chomp
if is_int?(result)
- return result.to_i
+ result.to_i
else
- return result.chomp
+ result.chomp
end
end
private
def is_int?(figure)
\ No newline at end of file