Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

Commit

Permalink
fix builder
Browse files Browse the repository at this point in the history
  • Loading branch information
xinuc committed Apr 17, 2012
1 parent ffee637 commit 658e918
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Session4.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ menggunakan gem, kita menggunakan method `require "<nama file>"`.
require "rubygems" # tidak dibutuhkan untuk ruby 1.9 ke atas
require "builder"

xml = Builder::XmlMarkup.new(STDOUT, 2)
xml = Builder::XmlMarkup.new
xml.person do
name("Slamet Riyadi")
location("Indonesia")
xml.name "Slamet Riyadi"
xml.location "Indonesia"
end
```

Expand Down

0 comments on commit 658e918

Please sign in to comment.