ruby: typo in enumerable

develop
jj 2012-04-27 17:31:39 +02:00
parent 6800f459f5
commit 9bceb7a443
1 changed files with 1 additions and 0 deletions

@ -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