HEX
Server: LiteSpeed
System: Linux premium212.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: vitanhod (1367)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //opt/alt/ruby40/share/gems/gems/rdoc-7.0.4/lib/rdoc/markup/hard_break.rb
# frozen_string_literal: true

module RDoc
  class Markup
    # A hard-break in the middle of a paragraph.
    class HardBreak < Element
      @instance = new

      # RDoc::Markup::HardBreak is a singleton
      #: () -> HardBreak
      def self.new
        @instance
      end

      # Calls #accept_hard_break on +visitor+
      # @override
      #: (untyped) -> void
      def accept(visitor)
        visitor.accept_hard_break(self)
      end

      #: (top) -> bool
      def ==(other) # :nodoc:
        self.class === other
      end

      # @override
      #: (PP) -> void
      def pretty_print(q) # :nodoc:
        q.text("[break]")
      end
    end
  end
end