lib/nokogiri/xml/attribute_decl.rb



# frozen_string_literal: true

module Nokogiri
  module XML
    ###
    # Represents an attribute declaration in a DTD
    class AttributeDecl < Nokogiri::XML::Node
      undef_method :attribute_nodes
      undef_method :attributes
      undef_method :content
      undef_method :namespace
      undef_method :namespace_definitions
      undef_method :line if method_defined?(:line)

      private

      def inspect_attributes
        [:to_s]
      end
    end
  end
end