# File lib/nokogiri/xml/builder.rb, line 29 def method_missing(method, *args, &block) if @context.respond_to?(method) @context.send(method, *args, &block) else node = Nokogiri::XML::Node.new(method.to_s, @doc) { |n| if content = args.first if content.is_a?(Hash) content.each { |k,v| n[k.to_s] = v.to_s } else n.content = content end end } insert(node, &block) end end