Ruby: add _indexenum wrapper to OtherVectors for compat with devel/scanitemsother

Ref #1558
develop
lethosor 2020-07-26 23:11:04 -04:00
parent f0ad730a37
commit 4554ca35f3
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 3 additions and 0 deletions

@ -213,6 +213,9 @@ module DFHack
end end
end end
def _indexenum
self.class._enum
end
def [](i) def [](i)
self.send(self.class._enum.sym(i)) self.send(self.class._enum.sym(i))
end end