# File lib/hashery/sparsearray.rb, line 348 def nitems cnt = 0 (0...self.length).each { |i| cnt += 1 if self.fetch(i) != nil } cnt end