<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -40,7 +40,7 @@ Using PreferenceFu is very simple.
 	
 For new AR objects, all preference options will be set to false. This can be overwritten using set_default_preference. I really recommend you read the 'Warning' section below.
 
-Setting a preference:
+Setting a key:
 	...individually
 	@user.prefs[:delete_user] = true 
 		
@@ -52,10 +52,14 @@ Setting an option as true doesn't necessarily need to be done with the Boolean t
  	@user.prefs[:create_user] = 'yes'
 
 
-Fetching a preference:
+Fetching a key:
 	@user.prefs[:change_theme]  =&gt; false
 	
 
+Getting the index of a key:
+	@user.prefs.index(:delete_user)  =&gt; 4
+	
+
 Enumerable...
 	@user.prefs.size  =&gt; 4
 	</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -122,6 +122,11 @@ module PreferenceFu
       update_permissions
     end
     
+    def index(key)
+      idx, hsh = lookup(key)
+      idx
+    end
+    
     # used for mass assignment of preferences, such as a hash from params
     def store(prefs)
       prefs.each do |key, value|</diff>
      <filename>lib/preference_fu.rb</filename>
    </modified>
    <modified>
      <diff>@@ -53,4 +53,8 @@ class PreferenceFuTest &lt; Test::Unit::TestCase
     end
   end
   
+  def test_lookup_index_of_key
+    assert_equal 4, @person.prefs.index(:delete_user)
+  end
+  
 end</diff>
      <filename>test/preference_fu_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4c16d0b45cddf3e02848be3f45adcebaf35ea058</id>
    </parent>
  </parents>
  <author>
    <name>Brennan Dunn</name>
    <email>brennandunn@brennan-dunns-macbook-pro-15.local</email>
  </author>
  <url>http://github.com/brennandunn/preference_fu/commit/7c1c0e3e07aa706f422a4ec3aeb3fe1104f4d080</url>
  <id>7c1c0e3e07aa706f422a4ec3aeb3fe1104f4d080</id>
  <committed-date>2008-03-25T09:10:02-07:00</committed-date>
  <authored-date>2008-03-25T09:10:02-07:00</authored-date>
  <message>Added pulling of a key's bit index</message>
  <tree>621b1b836c89c6dac0a91fdcea80b9f70a8aaf95</tree>
  <committer>
    <name>Brennan Dunn</name>
    <email>brennandunn@brennan-dunns-macbook-pro-15.local</email>
  </committer>
</commit>
