{'id': 183207, 'code': 'Y2gQopBX HEX
HEX
Server: LiteSpeed
System: Linux premium241.web-hosting.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User: aurelytl (1710)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //opt/alt/ruby40/share/gems/gems/rdoc-7.0.4/lib/rdoc/markup/element.rb
# frozen_string_literal: true

module RDoc
  class Markup
    # Base class defining the interface for all markup elements found in documentation
    # @abstract
    class Element
      # @abstract
      #: (untyped) -> void
      def accept(visitor)
        raise NotImplementedError, "#{self.class} must implement the accept method"
      end

      # @abstract
      #: (PP) -> void
      def pretty_print(q)
        raise NotImplementedError, "#{self.class} must implement the pretty_print method"
      end
    end
  end
end