From 6d866523b8e2baf166e0a8c2989c242496e9eca0 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Fri, 28 Mar 2014 16:37:37 +0100 Subject: [PATCH] Renamed XML::Builder to XML::TreeBuilder. --- lib/oga.rb | 2 +- lib/oga/xml/{builder.rb => tree_builder.rb} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename lib/oga/xml/{builder.rb => tree_builder.rb} (96%) diff --git a/lib/oga.rb b/lib/oga.rb index 6fb3972..08fa446 100644 --- a/lib/oga.rb +++ b/lib/oga.rb @@ -10,6 +10,6 @@ require_relative 'oga/xml/document' require_relative 'oga/xml/text' require_relative 'oga/xml/comment' require_relative 'oga/xml/cdata' -require_relative 'oga/xml/builder' +require_relative 'oga/xml/tree_builder' require_relative 'oga/html/parser' diff --git a/lib/oga/xml/builder.rb b/lib/oga/xml/tree_builder.rb similarity index 96% rename from lib/oga/xml/builder.rb rename to lib/oga/xml/tree_builder.rb index 26801e4..1da6d52 100644 --- a/lib/oga/xml/builder.rb +++ b/lib/oga/xml/tree_builder.rb @@ -6,7 +6,7 @@ module Oga # @!attribute [r] ast # @return [Oga::AST::Node] # - class Builder < ::AST::Processor + class TreeBuilder < ::AST::Processor attr_reader :ast def on_document(node) @@ -74,6 +74,6 @@ module Oga def on_attribute(node) return *node end - end # Builder + end # TreeBuilder end # XML end # Oga