<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -72,10 +72,20 @@ class Resource
   #    resource[key]    =&gt; value or nil
   #
   # Returns the value associated with the given meta-data key. Key is
-  # usually a string.
+  # converted into a string.
   #
   def []( key )
-    @mdata[key]
+    @mdata[key.to_s]
+  end
+
+  # call-seq:
+  #    resource[key] = value
+  #
+  # Sets the given meta-data key to the value. Key is converted into a
+  # string.
+  #
+  def []=( key, value )
+    @mdata[key.to_s] = value
   end
 
   # call-seq:</diff>
      <filename>lib/webby/resources/resource.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>62c811c20edb0cbe00fbc3e45f2dca502333a72a</id>
    </parent>
  </parents>
  <author>
    <name>Tim Pease</name>
    <email>tim.pease@gmail.com</email>
  </author>
  <url>http://github.com/dchelimsky/webby/commit/275adf3494b455b21c34c65ab305987960ebe5bd</url>
  <id>275adf3494b455b21c34c65ab305987960ebe5bd</id>
  <committed-date>2008-06-11T11:37:28-07:00</committed-date>
  <authored-date>2008-06-11T11:37:28-07:00</authored-date>
  <message>Providing full access to a resource's meta-data using good ol' hash reference
semantics. Enjoy!

(I can't figure out if the chickens are really smart or really stupid.
I usually lean towards the latter, but then they outsmart the two year old.)</message>
  <tree>05073dba5f23b7254008ef767856eb34e2c7d94a</tree>
  <committer>
    <name>Tim Pease</name>
    <email>tim.pease@gmail.com</email>
  </committer>
</commit>
