From 9bceb7a4437affca2b94092a3745a1335d4fb1e3 Mon Sep 17 00:00:00 2001 From: jj Date: Fri, 27 Apr 2012 17:31:39 +0200 Subject: [PATCH] ruby: typo in enumerable --- plugins/ruby/ruby-memstruct.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/ruby/ruby-memstruct.rb b/plugins/ruby/ruby-memstruct.rb index adde84699..cb99dbefb 100644 --- a/plugins/ruby/ruby-memstruct.rb +++ b/plugins/ruby/ruby-memstruct.rb @@ -303,6 +303,7 @@ module IndexEnum end module Enumerable include ::Enumerable + attr_accessor :_indexenum def each ; (0...length).each { |i| yield self[i] } ; end def inspect enum = DFHack.const_get(_indexenum)::ENUM if _indexenum