print 'Введите что-нибудь: '
t = STDIN.gets
puts "Вы ввели: #{t}"def move=(distantion)
if value == ""
raise "Введите куда движется"
end
@distantion = value
end ActiveRecord::Base.transaction do
checker_result.save
endclass CheckerError < ApplicationRecord
belongs_to :checker_result
def delete_if_some
raise ActiveRecord::Rollback
end
end