<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,7 +7,10 @@ module StrokeDB
     #   end
     #
     def index_slots(*args)
+      # Wrap all slots into an array:
+      # [:a, :b, [:x, :y]]  =&gt; [ [:a], [:b], [:x, :y] ]
       slots = args.map{|a| a.is_a?(Array) ? a.map{|e|e.to_s} : [a.to_s] }
+      
       @meta_initialization_procs &lt;&lt; Proc.new do
         view_name = &quot;index_slots_for_#{name}:#{nsurl}&quot;
         opts = { :only =&gt; name, :slots =&gt; slots, :doc_meta =&gt; doc }
@@ -15,7 +18,9 @@ module StrokeDB
           def view.map(uuid, doc)
             meta = self['doc_meta']
             slots.each do |sl|
+              # construct a key out of the list of slots
               k = sl.inject([]) do |a, sn|
+                # push [slot_name, slot_value]
                 a &lt;&lt; sn &lt;&lt; doc[sn]
               end
               [[meta, k], doc]</diff>
      <filename>lib/strokedb/document/index_slots.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8c24572711a8b960f2b61f28e47412475b69e43d</id>
    </parent>
  </parents>
  <author>
    <name>Oleg Andreev</name>
    <email>oleganza@idbns.com</email>
  </author>
  <url>http://github.com/yrashk/strokedb/commit/f543d0effa827695f36487c17024f8b46ac8e130</url>
  <id>f543d0effa827695f36487c17024f8b46ac8e130</id>
  <committed-date>2008-05-01T12:15:47-07:00</committed-date>
  <authored-date>2008-05-01T12:15:47-07:00</authored-date>
  <message>added some comment to a view for index_slots.rb</message>
  <tree>e27da68955e8f62325fe65c8990346b921182312</tree>
  <committer>
    <name>Oleg Andreev</name>
    <email>oleganza@idbns.com</email>
  </committer>
</commit>
