From 77c23dad8bee728db24ca62b8a8c2839b886bd35 Mon Sep 17 00:00:00 2001 From: Will Bryant Date: Tue, 15 Sep 2026 09:54:37 +1200 Subject: [PATCH] Implement RoutingIntVar#name to fix #inspect NameError --- ext/or-tools/routing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/or-tools/routing.cpp b/ext/or-tools/routing.cpp index c7b23e7..3bb2429 100644 --- a/ext/or-tools/routing.cpp +++ b/ext/or-tools/routing.cpp @@ -224,6 +224,7 @@ void init_routing(Rice::Module& m) { // not to be confused with operations_research::sat::IntVar rb_cIntVar + .define_method("name", &operations_research::IntVar::name) .define_method("var?", &operations_research::IntVar::IsVar) .define_method("value", &operations_research::IntVar::Value) .define_method("remove_value", &operations_research::IntVar::RemoveValue)