class HaveMoney
attr_accessor :haveMoney
def initialize
@haveMoney = haveMoney
end
def checkMoney
if @haveMoney.empty?
puts "Вы ничего не ввели"
elsif @haveMoney <= 99
puts "Плохо"
elsif @haveMoney >= 100
puts "Круто"
end
end
end
mg = HaveMoney.new
puts "Введите сумму: "
mg.haveMoney = gets.chomp.to_i
mg.checkMoney