Class: RDoc::Markup::HardBreak
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rdoc/markup/hard_break.rb |
Overview
A hard-break in the middle of a paragraph.
Class Method Summary
-
.new ⇒ HardBreak
constructor
HardBreak
is a singleton.
Instance Method Summary
-
#accept(visitor)
Calls
#accept_hard_break
onvisitor
- #==(other) Internal use only
- #pretty_print(q) Internal use only
Constructor Details
.new ⇒ HardBreak
HardBreak
is a singleton
# File 'lib/rdoc/markup/hard_break.rb', line 12
def self.new @instance end
Instance Method Details
#==(other)
This method is for internal use only.
[ GitHub ]
# File 'lib/rdoc/markup/hard_break.rb', line 23
def == other # :nodoc: self.class === other end
#accept(visitor)
Calls #accept_hard_break
on visitor
# File 'lib/rdoc/markup/hard_break.rb', line 19
def accept visitor visitor.accept_hard_break self end
#pretty_print(q)
This method is for internal use only.
[ GitHub ]
# File 'lib/rdoc/markup/hard_break.rb', line 27
def pretty_print q # :nodoc: q.text "[break]" end