Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed documentation bug

  • Loading branch information...
commit fab52088ea830190b0d78ff10411a51250887bea 1 parent 63be067
Jim Weirich jimweirich authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/builder/xmlmarkup.rb
12 lib/builder/xmlmarkup.rb
View
@@ -23,14 +23,14 @@ module Builder
# Examples will demonstrate this easier than words. In the
# following, +xm+ is an +XmlMarkup+ object.
#
- # xm.em("emphasized") # => <em>emphasized</em>
- # xm.em { xmm.b("emp & bold") } # => <em><b>emph &amp; bold</b></em>
+ # xm.em("emphasized") # => <em>emphasized</em>
+ # xm.em { xm.b("emp & bold") } # => <em><b>emph &amp; bold</b></em>
# xm.a("A Link", "href"=>"http://onestepback.org")
- # # => <a href="http://onestepback.org">A Link</a>
- # xm.div { br } # => <div><br/></div>
+ # # => <a href="http://onestepback.org">A Link</a>
+ # xm.div { xm.br } # => <div><br/></div>
# xm.target("name"=>"compile", "option"=>"fast")
- # # => <target option="fast" name="compile"\>
- # # NOTE: order of attributes is not specified.
+ # # => <target option="fast" name="compile"\>
+ # # NOTE: order of attributes is not specified.
#
# xm.instruct! # <?xml version="1.0" encoding="UTF-8"?>
# xm.html { # <html>
Please sign in to comment.
Something went wrong with that request. Please try again.