From 4554ca35f3eef40137d5b264fdfda673eca60be0 Mon Sep 17 00:00:00 2001 From: lethosor Date: Sun, 26 Jul 2020 23:11:04 -0400 Subject: [PATCH] Ruby: add _indexenum wrapper to OtherVectors for compat with devel/scanitemsother Ref #1558 --- plugins/ruby/ruby-autogen-defs.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/ruby/ruby-autogen-defs.rb b/plugins/ruby/ruby-autogen-defs.rb index c72ffeb2b..162914e32 100644 --- a/plugins/ruby/ruby-autogen-defs.rb +++ b/plugins/ruby/ruby-autogen-defs.rb @@ -213,6 +213,9 @@ module DFHack end end + def _indexenum + self.class._enum + end def [](i) self.send(self.class._enum.sym(i)) end