Update README.md
This commit is contained in:
parent
5b66e6852f
commit
ed58788884
1 changed files with 3 additions and 4 deletions
|
@ -8,7 +8,6 @@ A Ruby gem to parse HTML containing one or more
|
||||||
and return a collection of Ruby objects.
|
and return a collection of Ruby objects.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Current Version
|
## Current Version
|
||||||
|
|
||||||
0.0.1
|
0.0.1
|
||||||
|
@ -40,9 +39,9 @@ Or install it yourself as:
|
||||||
```ruby
|
```ruby
|
||||||
require "microformats2"
|
require "microformats2"
|
||||||
|
|
||||||
html = '<div class="h-org"><p class="p-name">G5</p></div'
|
html = '<div class="h-card"><p class="p-name">Jessica Lynn Suttles</p></div>'
|
||||||
formats = Microformats.parse(html)
|
formats = Microformats.parse(html)
|
||||||
puts formats.h_org.name.value # => "G5"
|
formats.h_card.name.value #=> "Jessica Lynn Suttles"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -75,7 +74,7 @@ rake specs:update
|
||||||
|
|
||||||
To run specs
|
To run specs
|
||||||
```bash
|
```bash
|
||||||
rspec spec
|
rake spec
|
||||||
```
|
```
|
||||||
|
|
||||||
To keep specs running
|
To keep specs running
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue