# File /data/home/olly/tmp/xapian-svn-snapshot/tags/1.0.5/xapian/xapian-bindings/ruby/docs/../xapian.rb, line 194
    def terms
      Xapian._safelyIterate(self._begin(), 
                            self._end()) { |item|
        # note: in the ExpandTerm wrapper, we implicitly rename
        # ESetIterator#termname() (defined in xapian.i) to ExpandTerm#term()
        Xapian::ExpandTerm.new(item.termname, item.weight)
      }

    end