1## 2# A hard-break in the middle of a paragraph. 3 4class RDoc::Markup::HardBreak 5 6 @instance = new 7 8 ## 9 # RDoc::Markup::HardBreak is a singleton 10 11 def self.new 12 @instance 13 end 14 15 ## 16 # Calls #accept_hard_break on +visitor+ 17 18 def accept visitor 19 visitor.accept_hard_break self 20 end 21 22 def == other # :nodoc: 23 self.class === other 24 end 25 26 def pretty_print q # :nodoc: 27 q.text "[break]" 28 end 29 30end 31 32