<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -203,7 +203,7 @@ module StrokeDB
     # If slot was not found, it will return &lt;tt&gt;nil&lt;/tt&gt;
     #
     def [](slotname)
-      slotname = slotname.document.uuid if slotname.is_a?(Meta) &amp;&amp; slotname.is_a?(Module)
+      slotname = slotname.document.uuid if (slotname.is_a?(Meta) &amp;&amp; slotname.is_a?(Module)) || (slotname == Meta)
       @slots[slotname.to_s].value rescue nil
     end
 
@@ -213,7 +213,7 @@ module StrokeDB
     #   document[:slot_1] = &quot;some value&quot;
     #
     def []=(slotname, value)
-      slotname = slotname.document.uuid if slotname.is_a?(Meta) &amp;&amp; slotname.is_a?(Module)
+      slotname = slotname.document.uuid  if (slotname.is_a?(Meta) &amp;&amp; slotname.is_a?(Module)) || (slotname == Meta)
       slotname = slotname.to_s
 
       (@slots[slotname] ||= Slot.new(self, slotname)).value = value</diff>
      <filename>lib/strokedb/document.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,6 +10,11 @@ describe &quot;Document&quot; do
   end
 
   it &quot;should assign a uuid-named slot for metaslot&quot; do
+    @document[Meta] = SomeMeta
+    @document.slotnames.should include(Meta.document.uuid)
+  end
+
+  it &quot;should assign a uuid-named slot for metaslot&quot; do
     @document[SomeMeta] = &quot;some value&quot;
     @document.slotnames.should include(SomeMeta.document.uuid)
   end</diff>
      <filename>spec/lib/strokedb/document/metaslot_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>74b909b3910f8cee9138d70a6b683e19a9e23fa1</id>
    </parent>
  </parents>
  <author>
    <name>Yurii Rashkovskii</name>
    <email>yrashk@idbns.com</email>
  </author>
  <url>http://github.com/yrashk/strokedb/commit/e3704e7c4d07f9f07df8b984d5c20fc44999dad8</url>
  <id>e3704e7c4d07f9f07df8b984d5c20fc44999dad8</id>
  <committed-date>2008-05-17T12:05:47-07:00</committed-date>
  <authored-date>2008-05-17T12:05:47-07:00</authored-date>
  <message>Enable doc[Meta] syntax</message>
  <tree>d768b1ab6013cd9e09ea5a6a7fca965819e3f111</tree>
  <committer>
    <name>Yurii Rashkovskii</name>
    <email>yrashk@idbns.com</email>
  </committer>
</commit>
