ohler55/ox — pull request #31 by joshvoigts (2013-01-12 16:12:21+00:00)
Title: Chaining appends onto an element

The method `<<` returns `self` instead of the nodes array so multiple appends can be chained together.

For example:

require 'ox'
include Ox

doc = Document.new

elem1 = Element.new('elem1')
elem2 = Element.new('elem2')

p doc << elem1 << elem2

# Currently returns this:
# => [#,
# #]

# But should return this:
# => #,
# #]>