public
Description: I suppose it's a document database. Or a tuple store. But really, it's just data sloshing around, waiting to be used.
Clone URL: git://github.com/lazyatom/soup.git
Updated the README to use the Soup interface
lazyatom (author)
Sun Apr 13 14:00:59 -0700 2008
commit  f151d7b9aa8eea291c4d4a5bef1a8325f4975b00
tree    aa85e249a9642343032ac4dfae7662d9041f14e5
parent  1dcbcf257772f353dd898d7ccd89a725c8ddb224
0
...
6
7
8
9
10
11
12
 
 
 
 
 
13
14
15
16
 
17
18
19
20
21
22
23
 
 
 
 
 
 
24
25
26
 
 
27
28
 
29
30
31
...
6
7
8
 
 
 
 
9
10
11
12
13
14
15
16
 
17
18
19
 
 
 
 
 
20
21
22
23
24
25
26
 
 
27
28
29
 
30
31
32
33
0
@@ -6,26 +6,28 @@ Terrifying. And so:
0
   require 'soup'
0
   Soup.prepare
0
 
0
- s = Snip.new
0
- s.name = "James"
0
- s.skills = "Bowstaff, nunchuck"
0
- s.save
0
+
0
+ Soup << {
0
+ :name => "James",
0
+ :skills => "Bowstaff, nunchuck"
0
+ }
0
   
0
   # ...much later...
0
   
0
- s = Snip['james']
0
+ s = Soup['james']
0
   s.skills # => "Bowstaff, nunchuck"
0
   
0
- x = Snip.new
0
- x.mane = "Lush and thick"
0
- x.teeth = "Sharp and ready"
0
- x.position = "Above my bed!!!"
0
- x.save
0
+ Soup << {
0
+ :mane => "Lush and thick"
0
+ :teeth => "Sharp and ready"
0
+ :position => "Above my bed!!!"
0
+ }
0
+
0
   
0
-The point is that you can set any attribute on a Snip, and it will be persisted without care.
0
-With reckless abandon, really.
0
+The point is that you can set any attribute on a Soup data, and it will be persisted without
0
+care. With reckless abandon, really.
0
 
0
-The data can be stored using anything - Snip doesn't really care much about the underlying
0
+The data can be stored using anything - Soup doesn't really care much about the underlying
0
 persistence layer. I've written implementations using DataMapper, ActiveRecord and Sequel...
0
 there are other implementations of course. Unknowable implementations.
0
 Terrifying implementations. You Fool! Warren is Dead!

Comments

    No one has commented yet.