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