From 61c01b1f6de29e8c20240d923a84f4702e2d4bb4 Mon Sep 17 00:00:00 2001 From: Jessica Lynn Suttles Date: Mon, 18 Feb 2013 13:46:21 -0800 Subject: [PATCH] updates readme --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 05b9478..8423a93 100644 --- a/README.md +++ b/README.md @@ -62,11 +62,13 @@ Or install it yourself as: ```ruby require "microformats2" -html = '

Jessica Lynn Suttles

' -collection = Microformats.parse(html) -collection.card.first.name.first.value #=> "Jessica Lynn Suttles" +source = '

Jessica Lynn Suttles

' +collection = Microformats.parse(source) +collection.cards.first.names.first.to_s #=> "Jessica Lynn Suttles" +collection.card.name.to_s #=> "Jessica Lynn Suttles" ``` +* `source` can be a URL, filepath, or HTML ## Authors