module Watir
  module Generator
    module SVG
      class Visitor < Base::Visitor
        def classify_regexp
          /^SVG(.+)Element$/
        end

        private

        def interface_regexp
          /^SVG.*Element$/
        end

        def force_inheritance
          {'SVGElement' => 'HTMLElement'}
        end
      end # Visitor
    end # SVG
  end # Generator
end # Watir
