Skip to content
Browse files

fix builder

  • Loading branch information...
1 parent ffee637 commit 658e918a4732ee0161e4b609433239e75a1f713e @xinuc committed Apr 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Session4.md
View
6 Session4.md
@@ -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
```

0 comments on commit 658e918

Please sign in to comment.
Something went wrong with that request. Please try again.