Class: RDoc::Markup::HardBreak
- Inherits:
-
Object
- Object
- RDoc::Markup::HardBreak
- Defined in:
- lib/rdoc/markup/hard_break.rb
Overview
A hard-break in the middle of a paragraph.
Class Method Summary collapse
-
.new ⇒ Object
RDoc::Markup::HardBreak is a singleton.
Instance Method Summary collapse
-
#==(other) ⇒ Object
:nodoc:.
-
#accept(visitor) ⇒ Object
Calls #accept_hard_break on
visitor
. -
#pretty_print(q) ⇒ Object
:nodoc:.
Class Method Details
.new ⇒ Object
RDoc::Markup::HardBreak is a singleton
12 13 14 |
# File 'lib/rdoc/markup/hard_break.rb', line 12 def self.new @instance end |
Instance Method Details
#==(other) ⇒ Object
:nodoc:
23 24 25 |
# File 'lib/rdoc/markup/hard_break.rb', line 23 def == other # :nodoc: self.class === other end |
#accept(visitor) ⇒ Object
Calls #accept_hard_break on visitor
19 20 21 |
# File 'lib/rdoc/markup/hard_break.rb', line 19 def accept visitor visitor.accept_hard_break self end |
#pretty_print(q) ⇒ Object
:nodoc:
27 28 29 |
# File 'lib/rdoc/markup/hard_break.rb', line 27 def pretty_print q # :nodoc: q.text "[break]" end |