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