Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated the README to match the current format.

  • Loading branch information...
commit 55907cba452a6ece4610480a135e14cf65834748 1 parent a8d1932
@lazyatom authored
Showing with 8 additions and 9 deletions.
  1. +8 −9 README
View
17 README
@@ -4,26 +4,25 @@ and will often talk to you, but when you look closely, they don't exist.
Terrifying. And so:
require 'soup'
- Soup.prepare
+ soup = Soup.new(File.join("soup", __FILE__))
-
- Soup << {
+ soup << {
:name => "James",
:skills => "Bowstaff, nunchuck"
}
-
+
# ...much later...
-
- s = Soup['james']
+
+ s = soup['james']
s.skills # => "Bowstaff, nunchuck"
-
- Soup << {
+
+ soup << {
:mane => "Lush and thick"
:teeth => "Sharp and ready"
:position => "Above my bed!!!"
}
-
+
The point is that you can set any attribute on a Soup data, and it will be persisted without
care. With reckless abandon, really.
Please sign in to comment.
Something went wrong with that request. Please try again.